Derviş Kayımbaşıoğlu's user avatar
Derviş Kayımbaşıoğlu's user avatar
Derviş Kayımbaşıoğlu's user avatar
Derviş Kayımbaşıoğlu
  • Member for 4 years, 7 months
  • Last seen more than a month ago
About

Contact me on Codementor

If you need further help you can Contact me on Codementor on CodeMentor.

var result = String.Concat("ESı!BJCŝPM".Zip("DUŝJXL@HġT", (a, b) => --a + "" + ++b));

var encode = "DERVİŞ KAYIMBAŜIOĢLU"
    .Select((x, i) => new {Group = i % 2, Ch = i % 2 == 0 ? ++x : --x})
    .GroupBy(item => item.Group == 1)
    .Select(gr => string.Concat(gr.Select(item => item.Ch)))
    .ToArray();

var decode = String.Concat(encode[0].Zip(encode[1], (a, b) => --a + "" + ++b));

if (result.Equals(decode))
    Console.WriteLine("That's Me!");
Badges
This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
5
bronze badges
Top tags
1
Score
1
Posts
50
Posts %
0
Score
1
Posts
50
Posts %
0
Score
1
Posts
50
Posts %