7 kyu
Exes and Ohs
93,369 of 268,484joh_pot
Description:
Check to see if a string has the same amount of 'x's and 'o's. The method must return a boolean and be case insensitive. The string can contain any char.
Examples input/output:
XO("ooxx") => true
XO("xooxx") => false
XO("ooxXm") => true
XO("zpzpzpp") => true // when no 'x' and 'o' is present should return true
XO("zzoo") => false
Fundamentals
Similar Kata:
Stats:
Created | Jun 29, 2015 |
Published | Jun 29, 2015 |
Warriors Trained | 391569 |
Total Skips | 32364 |
Total Code Submissions | 791088 |
Total Times Completed | 268484 |
JavaScript Completions | 93369 |
Python Completions | 95657 |
Haskell Completions | 1993 |
CoffeeScript Completions | 183 |
Ruby Completions | 8116 |
C# Completions | 15695 |
Java Completions | 26983 |
C Completions | 5885 |
Rust Completions | 3356 |
R Completions | 415 |
TypeScript Completions | 4591 |
Scala Completions | 867 |
NASM Completions | 67 |
PHP Completions | 4560 |
C++ Completions | 10744 |
Julia Completions | 130 |
Dart Completions | 1509 |
COBOL Completions | 29 |
Factor Completions | 16 |
OCaml Completions | 81 |
Lua Completions | 73 |
Total Stars | 2021 |
% of votes with a positive feedback rating | 89% of 20589 |
Total "Very Satisfied" Votes | 16546 |
Total "Somewhat Satisfied" Votes | 3712 |
Total "Not Satisfied" Votes | 331 |