Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of Derviş Kayımbaşıoğlu

Derviş Kayımbaşıoğlu

Derviş Kayımbaşıoğlu has asked 3 questions and find answers to 69 problems.

Stats

1.9k
EtPoint
647
Vote count
3
questions
69
answers

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!");