7 kyu
Exes and Ohs
94,867 of 266,625joh_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 | 389231 |
Total Skips | 32251 |
Total Code Submissions | 787674 |
Total Times Completed | 266625 |
JavaScript Completions | 92817 |
Python Completions | 94867 |
Haskell Completions | 1986 |
CoffeeScript Completions | 183 |
Ruby Completions | 8102 |
C# Completions | 15606 |
Java Completions | 26827 |
C Completions | 5838 |
Rust Completions | 3340 |
R Completions | 414 |
TypeScript Completions | 4524 |
Scala Completions | 865 |
NASM Completions | 66 |
PHP Completions | 4532 |
C++ Completions | 10633 |
Julia Completions | 130 |
Dart Completions | 1493 |
COBOL Completions | 29 |
Factor Completions | 16 |
OCaml Completions | 80 |
Lua Completions | 65 |
Total Stars | 2014 |
% of votes with a positive feedback rating | 89% of 20535 |
Total "Very Satisfied" Votes | 16502 |
Total "Somewhat Satisfied" Votes | 3704 |
Total "Not Satisfied" Votes | 329 |