| about | help | code help+videos | done | prefs |
sequence() -- You are given three numbers and want to determine if those numbers represent an increasing sequence (i.e., each number is larger than the preceding one), a decreasing sequence (i.e., each number is smaller than the preceding one), or neither. The method should return either "increasing", "decreasing", or "neither", accordingly. sequence(1, 2, 3) → "increasing" sequence(3, 2, 1) → "decreasing" sequence(1, 1, 1) → "neither" ...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: 50
Copyright Nick Parlante 2017 - privacy