about | help | code help+videos | done | prefs |
carefulPickName(String[] names, int n) -- Given an array of names (String), and an int n, if n is a valid index return the name that is n slots away from the first name. If n is not a valid index, return "INVALID INDEX" carefulPickName(["Able", "Baker", "Charlie", "Doogie", "Elmer"], 0) → "Able" carefulPickName(["Able", "Baker", "Charlie", "Doogie", "Elmer"], 1) → "Baker" carefulPickName(["Able", "Baker", "Charlie", "Doogie", "Elmer"], 2) → "Charlie" ...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: 100
Copyright Nick Parlante 2017 - privacy