A challenge with a $5 bitcoin prize
h
jajoosam (655)

What up replers!

I've got an algorithms problem for you, where you're trying to find the longest pay it forward chain of gifts.

https://repl.it/@jajoosam/r-g-hist-chain-challenge

Check the details there👆 - and comment down if you have any questions.

The first to get a solution that works (only js please!) gets a $5 bitcoin prize - include your BTC address with your solution.

Edit: @ammarbinfaisal won 🏆

Have fun!

You are viewing a single comment. View All
Answered by ammarbinfaisal (6) [earned 5 cycles]
View Answer
jajoosam (655)

@RajivReddy

  • Need the nodes of each chain
  • Yes, ok to assume data is already chronologically ordered