about | help | code help+videos | done | prefs |
You love climbing mountains, and in fact, you think of yourself to be quite exceptional at the sport. Your friend decides to test that theory and presents you with a series of challenges. For each challenge, she gives you the layout of a “mountain” of blocks as an n x n grid of positive integers, where each integer in the grid represents the height of that location in blocks. She tells you your starting position will always be in the top left corner. Given this information, she asks if you think you can reach the top.
UIL2015_INVA_07_MOUNTAIN([3, 1, 3, 1, 1], [1, 1, 3, 7, 2], [2, 3, 3, 7, 3], [4, 4, 7, 7, 4], [9, 8, 7, 6, 5]) → true UIL2015_INVA_07_MOUNTAIN([3, 1, 3, 1, 1], [1, 1, 3, 7, 2], [2, 3, 3, 7, 3], [4, 4, 7, 7, 4], [9, 7, 7, 6, 5]) → false UIL2015_INVA_07_MOUNTAIN([3, 1, 2, 1, 1], [6, 5, 4, 7, 2], [7, 3, 3, 7, 3], [8, 4, 3, 2, 4], [9, 7, 7, 6, 5]) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy