Coder Social home page Coder Social logo

hemantkumar76 / generate-100-random-numbers-and-perform-bubble-sort- Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2 KB

1. Create ‘n’ nodes singly linked list to store unique random values in the range 0 to 100. Also, store node position in every node of the linked list. (For example, to generate unique random numbers, we can use an integer array of size (101) as status array that initializes with 0. The status array can be used to check the status of a random number whether that number has previously occurred or not. For every random number generation, we can use that random number as an index in the status array, if that element of status array is zero then that random number is unique and is being used to store in the linked list, otherwise try for next random number.) 2. Sort the unique values of the linked list in ascending order using bubble sort. 3. Find the middle node of the linked list. (Note that in the case of an even number of nodes in the Linked List, there will be two middle nodes. In that case, we need to print the first middle element.) 4. Finally, generate a random number within the range 0 to 100, consider that number as key and check whether key is present in the list. If key is not present then print output “Key does not find in the list”, otherwise print node number in which key matched.

License: MIT License

C 100.00%

generate-100-random-numbers-and-perform-bubble-sort-'s Introduction

〖 An Interested Coder and Developer from India who believes in the power of community. 〗

hemantkumar76

hemantkumar76

side_sticker

@hemantk61956752

 About me ....

@hemantkumar76's Holopin board

                               MY CONTRIBUTITION ON GITHUB(THROUGH AN ANIMATION) 

snake gif

 Connect with me:-

@hemantk61956752 hemant kumar hemant kumar @hemant_kumar76 @hemanthku01 @hemanthku01

Languages and Tools:-

android arduino bootstrap c cplusplus csharp css3 dart django dotnet figma flutter git html5 java javascript jenkins kotlin linux mssql nodejs openresty photoshop php python reactnative ruby swift unity xd Vs code

GitHub Analytics:-

hemantkumar76

 hemantkumar76

hemantkumar76

generate-100-random-numbers-and-perform-bubble-sort-'s People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.