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

Stats:

CreatedJun 29, 2015
PublishedJun 29, 2015
Warriors Trained389231
Total Skips32251
Total Code Submissions787674
Total Times Completed266625
JavaScript Completions92817
Python Completions94867
Haskell Completions1986
CoffeeScript Completions183
Ruby Completions8102
C# Completions15606
Java Completions26827
C Completions5838
Rust Completions3340
R Completions414
TypeScript Completions4524
Scala Completions865
NASM Completions66
PHP Completions4532
C++ Completions10633
Julia Completions130
Dart Completions1493
COBOL Completions29
Factor Completions16
OCaml Completions80
Lua Completions65
Total Stars2014
% of votes with a positive feedback rating89% of 20535
Total "Very Satisfied" Votes16502
Total "Somewhat Satisfied" Votes3704
Total "Not Satisfied" Votes329
Ad
Contributors
  • joh_pot Avatar
  • ZozoFouchtra Avatar
  • bkaes Avatar
  • g964 Avatar
  • GiacomoSorbi Avatar
  • JonnytheRipper Avatar
  • Chrono79 Avatar
  • adrian.eyre Avatar
  • a.merezhanyi Avatar
  • ezcrypter Avatar
  • fsb4000 Avatar
  • Voile Avatar
  • Madjosz Avatar
  • Souzooka Avatar
  • iArunava Avatar
  • rowcased Avatar
  • mentalplex Avatar
  • Avanta Avatar
  • FArekkusu Avatar
  • monadius Avatar
  • hobovsky Avatar
  • xavierguihot Avatar
  • stellartux Avatar
  • user8436785 Avatar
  • akar-0 Avatar
  • Kacarott Avatar
  • tri@ Avatar
  • Glinator Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
  • PetitLu117 Avatar
Ad