Skip to content

Instantly share code, notes, and snippets.

@JL-Cox
Created July 3, 2018 23:24
Show Gist options
  • Save JL-Cox/796a720e02869b2282348515564f37fd to your computer and use it in GitHub Desktop.
Save JL-Cox/796a720e02869b2282348515564f37fd to your computer and use it in GitHub Desktop.
CodeWarsKata - Double Cola - 01/2018
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