We are the Robots d[(0)(0)]b
Description:
------------------------------------------------------------------
we are programmed just to do anything you want us to
w e a r e t h e r o b o t s
-----------------------------------------------------------[ d[(0)(0)]b]
Task..... You will receieve an array of strings such as
a = ["We're functioning automatik d[(0)(0)]b","And we are dancing mechanik d[(0)(0)]b"]
Count the robots represented by d[(0)(0)]b
Unless of course the factory replaced a part on the robot.....
d[(0)(0)]b could look a little different depending on the supplier maybe like this
d[(0)(0)]B or d[(0)(0}]B
It's pretty random actually but with a global supply chain it's hard to control which part you get. Most of the parts are made global except the ones made in the factory which do not change.
d[(0)(0)]B
In all robots the eyes do not change.
d[(0)(0)]B
...0..0...
^ ^
| |
The rest of the body can change at random.
legs any in => abcdefghijklmnopqrstuvwxyz
...0..0...
^ ^
| |
body any in => |};&#[]/><()*
...0..0...
^^ ^^ ^^
|| || ||
There may be cases where a part is totally missing and of course a robot cannot function at all without a part or where the factory put a valid part in the wrong place and it's again not a valid robot.
return an array of strings with a count of each of the following tasks.
Case insensitve count of robots in string with "automatik" or "mechanik". Strings do not contain both "automatik and "mechanik".
Return an array with the count like below
a[0] = automatik count
a[1] = mechanik count
["1 robots functioning automatik", "1 robots dancing mechanik"]
to pay tribute...respect :)
https://en.wikipedia.org/wiki/The_Robots
Songwriters: HUETTER, RALF / SCHNEIDER-ESLEBEN, FLORIAN / BARTOS, KARL
Similar Kata:
Stats:
Created | Jan 15, 2017 |
Published | Jan 15, 2017 |
Warriors Trained | 962 |
Total Skips | 49 |
Total Code Submissions | 2356 |
Total Times Completed | 309 |
Python Completions | 97 |
Ruby Completions | 30 |
JavaScript Completions | 91 |
TypeScript Completions | 36 |
Java Completions | 56 |
Crystal Completions | 6 |
C# Completions | 42 |
Total Stars | 22 |
% of votes with a positive feedback rating | 91% of 109 |
Total "Very Satisfied" Votes | 91 |
Total "Somewhat Satisfied" Votes | 17 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 11 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |