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

Stats:

CreatedJun 29, 2015
PublishedJun 29, 2015
Warriors Trained386649
Total Skips32101
Total Code Submissions783594
Total Times Completed264584
JavaScript Completions92200
Python Completions93986
Haskell Completions1968
CoffeeScript Completions181
Ruby Completions8089
C# Completions15511
Java Completions26635
C Completions5796
Rust Completions3313
R Completions411
TypeScript Completions4465
Scala Completions860
NASM Completions65
PHP Completions4505
C++ Completions10510
Julia Completions127
Dart Completions1475
COBOL Completions26
Factor Completions15
OCaml Completions78
Lua Completions60
Total Stars2004
% of votes with a positive feedback rating89% of 20476
Total "Very Satisfied" Votes16455
Total "Somewhat Satisfied" Votes3694
Total "Not Satisfied" Votes327
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