about | help | code help+videos | done | prefs |
findNextSquare
Find the next square should return the next perfect square that is x or bigger. So 4,9,16,25 are all squares. If x is a square, it should return that. findNextSquare(24) → 25 findNextSquare(9) → 9 findNextSquare(110) → 121 ...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