Created
July 3, 2018 23:24
-
-
Save JL-Cox/796a720e02869b2282348515564f37fd to your computer and use it in GitHub Desktop.
CodeWarsKata - Double Cola - 01/2018
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class Line | |
{ | |
public static string WhoIsNext(string[] names , long n) | |
{ | |
long q = (n + 4); | |
for (; q >= 10;)q /= 2; | |
q -= 5; | |
return names[q]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment