- How would you detect a repeated element in an integer array?
Answer
- Write an algorithm to find two numbers in an array whose sum equals a given value?
Answer
- Write a program to search for a substring in a main string?
Answer
- Write a C program to reverse a string?
Answer
- Write a C program to reverse the words in a sentence in place?
Answer
- Implement a function that reverses a sentence
Example:
Input: All the best;Do well.
Output: .well Do;best the All
Answer
- An array contains n distint integers and n same element. How to find the repeat (n times) element?
Answer
- Search an integer in a two dimentional integer array, in which each row and colomn are in sorted ascending order?
Answer
- Returns the largest sum of contiguous integers in the array
Example: if the input is (-10, 2, 3, -2, 0, 5, -15), the largest sum is 8. Answer
- Return the sum of two largest integers in an array
Answer
|
|