Created
April 17, 2021 22:04
-
-
Save alpox/42e77f4d49dcd8d2dc0961ce2cae459d to your computer and use it in GitHub Desktop.
Code Golf "Climbing the Leaderboard" - https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem
This file contains hidden or 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
const cl = (e,a,s=[...new Set(e)],l=s.length,n=(i,v)=>v>=s[i]?n(i-1,v):i)=>a.reduce(([c,i],v,_,__,ni=n(i,v))=>[(c.push(ni+2),c),ni],[[],l-1])[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment