Skip to content

Instantly share code, notes, and snippets.

View rbreve's full-sized avatar

Roberto Brevé rbreve

  • Finland
View GitHub Profile
static String getLongest(String s)
{
String longest = "";
for (int i = 1; i < s.Length; i++)
{
String first = s.Substring(0, i);
for (int j = 0; j < first.Length; j++)
{