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

More By Author:

Check out these other kata created by joh_pot

Stats:

CreatedJun 29, 2015
PublishedJun 29, 2015
Warriors Trained391569
Total Skips32364
Total Code Submissions791088
Total Times Completed268484
JavaScript Completions93369
Python Completions95657
Haskell Completions1993
CoffeeScript Completions183
Ruby Completions8116
C# Completions15695
Java Completions26983
C Completions5885
Rust Completions3356
R Completions415
TypeScript Completions4591
Scala Completions867
NASM Completions67
PHP Completions4560
C++ Completions10744
Julia Completions130
Dart Completions1509
COBOL Completions29
Factor Completions16
OCaml Completions81
Lua Completions73
Total Stars2021
% of votes with a positive feedback rating89% of 20589
Total "Very Satisfied" Votes16546
Total "Somewhat Satisfied" Votes3712
Total "Not Satisfied" Votes331
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