about | help | code help+videos | done | prefs |
public boolean isMountain. Returns true if the values in the array (nums) are ordered as a mountain; otherwise returns false. The array is a mountain if (1) there must be a peak; (2) the elements with an index smaller than the peak's index must appear in increasing order; (3) the elements with an index larger than the peak's index must appear in decreasing order. ...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