| about | help | code help+videos | done | prefs |
If the string's length is a multiple of 3, return the last three characters of the string as a new string. If the string's length is a multiple of 2, return the last two characters of the string as a new string. If the string's length is multiple of both 2 and 3, return "I don't know". If it is not multiple of 2 or 3, return "I know". multiples("abcdef") → "I don't know" multiples("ab") → "ab" multiples("123456") → "I don't know" ...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