Retired
Count bots (retired)
Description:
You receive capcha submissions from users (or bots?) and you need to count how many wrong aswers have been submitted (potential bots).
Each submission consists of catcha string and the answer. Captcha hides a simple mathematical expression with some addtional noise that can be any small or capital letter of the alphabet, examples: "AbC3rr-HH2jj"
, GGG9*5
For example, when the function countBots(submissions)
is invoked with the following array of submissions:
[
{
captcha:"1+1",
answer: 2,
},
{
captcha:"abc5*ab2a",
answer: 2,
}
]
it should return 1, becasue one of the submissions has wrong answer (5x2=10 not 2)
Regular Expressions
Arrays
Similar Kata:
Stats:
Created | Apr 25, 2024 |
Warriors Trained | 16 |
Total Skips | 0 |
Total Code Submissions | 33 |
Total Times Completed | 10 |
JavaScript Completions | 10 |
Total Stars | 0 |
% of votes with a positive feedback rating | 50% of 7 |
Total "Very Satisfied" Votes | 2 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 7 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |