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 response...
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.
Describe a use for virtual functions. How do virtual functions work? Are there any performance implications to virtual functions?
If a large C++ class has implemented the pre-increment and post-increment operators, which would be more efficient? Why?
Complete the following function to clear a block of memory (initialize all the bits to zero). The block of memory starts at pStartByte, and is numBytes long.
Write a function to reverse a singly linked list.