TIL/Algorithm
2019. 8. 11.
[Algorithm] Hackerrank - Jumping on the Clouds
알고리즘(코딩 시험이 걱정인건 함정)이 너무 약해서... 공부좀 해야지... 문제 Emma is playing a new mobile game that starts with consecutively numbered clouds. Some of the clouds are thunderheads and others are cumulus. She can jump on any cumulus cloud having a number that is equal to the number of the current cloud plus or . She must avoid the thunderheads. Determine the minimum number of jumps it will take Emma to jump from..