about | help | code help+videos | done | prefs |
The method lotteryTicketCheckerWithRepeats() 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:
lotteryTicketCheckerWithRepeats([1, 2, 3, 4, 5], [1, 3, 2, 4, 5]) → 11 lotteryTicketCheckerWithRepeats([1, 2, 3, 5, 4], [9, 2, 3, 4, 5]) → 8 lotteryTicketCheckerWithRepeats([1, 1, 1, 1, 1], [1, 2, 3, 4, 5]) → 3 ...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: 300 Post-solution available
Copyright Nick Parlante 2017 - privacy