You have a sorted array containing integers in the range of 1… n. Write a function that determines the index of the first instance of a particular number, and how many instances of that number are in the array.
You have a sorted array containing integers in the range of 1… n. Write a function that determines the index of the first instance of a particular number, and how many instances of that number are in the array.
1 Comment so far
Leave a comment
haii.its very good…
By vinoth on 08.22.06 7:34 am | Permalink
Leave a comment
If you are including code in your comment, place it within a <div class='code'></div> tag for better formatting.