about | help | code help+videos | done | prefs |
The method lotteryTicketChecker() takes an integer arraylist for the winning numbers and another integer arraylist for your numbers. It returns a score that is determined using the following rules:
lotteryTicketChecker([1, 2, 3, 4, 5], [1, 3, 2, 4, 5]) → 11 lotteryTicketChecker([1, 2, 3, 5, 4], [9, 2, 3, 4, 5]) → 8 lotteryTicketChecker([43, 22, 99, 54, 67], [43, 9, 10, 8, 22]) → 4 ...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: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy