You are given an array with integers between 1 and 1,000,000. One integer is in the array twice. How can you determine which one?
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
Reverse a string without the use of a temporary variable.
Any ideas welcome.
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
Reverse a string without the use of a temporary variable.
Any ideas welcome.