Answer in Java
public static void sumFile ( String name ) { try { int total = 0; BufferedReader in = new BufferedRead ...
Search results for int32
Find largest element in array
Posted by CMaster
Answer in C#
public static int FindMax( int[] input )
{
int max = Int32.MinValue;
for ( int i = 0; i < input.length; i++ )
{
if ( i ...
Write a function to find a largest sub-sequence in a given array of integers both positive and negative.
Examples:
{ -100, 1, 2, 3, -20, -20, -20, ...
« previous1 next »
