7 kyu
Exes and Ohs
92,200 of 264,584joh_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 | 386649 |
Total Skips | 32101 |
Total Code Submissions | 783594 |
Total Times Completed | 264584 |
JavaScript Completions | 92200 |
Python Completions | 93986 |
Haskell Completions | 1968 |
CoffeeScript Completions | 181 |
Ruby Completions | 8089 |
C# Completions | 15511 |
Java Completions | 26635 |
C Completions | 5796 |
Rust Completions | 3313 |
R Completions | 411 |
TypeScript Completions | 4465 |
Scala Completions | 860 |
NASM Completions | 65 |
PHP Completions | 4505 |
C++ Completions | 10510 |
Julia Completions | 127 |
Dart Completions | 1475 |
COBOL Completions | 26 |
Factor Completions | 15 |
OCaml Completions | 78 |
Lua Completions | 60 |
Total Stars | 2004 |
% of votes with a positive feedback rating | 89% of 20476 |
Total "Very Satisfied" Votes | 16455 |
Total "Somewhat Satisfied" Votes | 3694 |
Total "Not Satisfied" Votes | 327 |