The task clearly states the thing you should do, you need to carefully implement the process of an element finding it's place in a sorted array in a way the task wants you to. I suggest to have a separate function for just printing the array, it will somewhat ease your job.
This is the blog of site xoptutorials.com. All the news will be posted here and on the facebook page of xoptutorials.
Showing posts with label HackerRank::Algorithms::Sorting. Show all posts
Showing posts with label HackerRank::Algorithms::Sorting. Show all posts
Wednesday, April 15, 2015
HackerRank::Algorithms::Sorting::Intro to Tutorial Challenges
Simply looping over 1000 numbers to find a specific number is an OK idea which will get accepted for sure.
Subscribe to:
Posts (Atom)