about | help | code help+videos | done | prefs |
areLocked
We say digits in a and b are locked when both numbers have the same number of digits, and each digit is a 6 or a 7, and each time a digit in one number is 6, then the corresponding digit in the other number is 7, or vice versa. Return true if all digits in a and b are locked. areLocked(7, 6) → true areLocked(6, 7) → true areLocked(66, 77) → true ...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: 140
Copyright Nick Parlante 2017 - privacy