about | help | code help+videos | done | prefs |
Return the value of the grandparent for the given index, or -1 if no grandparent. grandparentHeap([0, 2, 4, 5, 6, 7, 10, 20, 8, 11, 9], 3) → -1 grandparentHeap([0, 2, 4, 5, 6, 7, 10, 20, 8, 11, 9], 2) → -1 grandparentHeap([0, 2, 4, 5, 6, 7, 10, 20, 8, 11, 9], 4) → 2 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy