6 kyu

The Deaf Rats of Hamelin

838 of 6,677dinglemouse

Description:


Story

The Pied Piper has been enlisted to play his magical tune and coax all the rats out of town.

But some of the rats are deaf and are going the wrong way!

Kata Task

How many deaf rats are there?

Legend

  • P = The Pied Piper
  • O~ = Rat going left
  • ~O = Rat going right

Example

  • ex1 ~O~O~O~O P has 0 deaf rats

  • ex2 P O~ O~ ~O O~ has 1 deaf rat

  • ex3 ~O~O~O~OP~O~OO~ has 2 deaf rats


Series

Fundamentals
Strings
Algorithms
Queues
Data Structures

Similar Kata:

Stats:

CreatedAug 1, 2017
PublishedAug 2, 2017
Warriors Trained16019
Total Skips2837
Total Code Submissions38558
Total Times Completed6677
Java Completions838
Python Completions2469
JavaScript Completions1755
C# Completions453
Ruby Completions145
Haskell Completions90
C Completions235
C++ Completions519
Elixir Completions42
PHP Completions150
COBOL Completions4
Rust Completions72
Go Completions99
Factor Completions7
Total Stars391
% of votes with a positive feedback rating95% of 1202
Total "Very Satisfied" Votes1084
Total "Somewhat Satisfied" Votes109
Total "Not Satisfied" Votes9
Total Rank Assessments6
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • dinglemouse Avatar
  • zruF Avatar
  • kazk Avatar
  • docgunthrop Avatar
  • Blind4Basics Avatar
  • Souzooka Avatar
  • clcraig Avatar
  • hobovsky Avatar
  • cliffstamp Avatar
  • ignium Avatar
  • akar-0 Avatar
  • Kacarott Avatar
Ad