Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Recursion seems to be one of the solutions, once you have a blueprint
Why ? Lol
Yeah i normal get the same issues in other challenges
public static int FindLongest(int[] number)
{
int longestnum = 0;
foreach(int a in number)
{
longestnum = number.Max();
}
return longestnum;
}
// In your question, you are looking for the value with have the greatest value above all numbers in array.
But what you kept was the answer when testing, was incorrect,
such as 2,983,758 have a great value than [(2,268,174)-->
this would display] as correct answer even though 2,983,758
is greater than 2,268,174.