7 kyu
The Office IV - Find a Meeting Room
3,257 of 7,010PG1
Description:
Your job at E-Corp is both boring and difficult. It isn't made any easier by the fact that everyone constantly wants to have a meeting with you, and that the meeting rooms are always taken!
In this kata, you will be given an array. Each value represents a meeting room. Your job? Find the first empty one and return its index (N.B. There may be more than one empty room in some test cases).
'X' --> busy
'O' --> empty
If all rooms are busy, return "None available!"
More in this series:
The Office I - Outed
The Office II - Boredeom Score
The Office III - Broken Photocopier
The Office V - Find a Chair
Fundamentals
Arrays
Similar Kata:
Stats:
Created | Oct 6, 2016 |
Published | Oct 6, 2016 |
Warriors Trained | 8322 |
Total Skips | 176 |
Total Code Submissions | 14699 |
Total Times Completed | 7010 |
JavaScript Completions | 3257 |
Python Completions | 2154 |
Ruby Completions | 225 |
CoffeeScript Completions | 14 |
Crystal Completions | 13 |
PHP Completions | 336 |
Haskell Completions | 60 |
Java Completions | 730 |
Julia Completions | 18 |
C++ Completions | 423 |
Total Stars | 55 |
% of votes with a positive feedback rating | 92% of 1229 |
Total "Very Satisfied" Votes | 1061 |
Total "Somewhat Satisfied" Votes | 138 |
Total "Not Satisfied" Votes | 30 |
Total Rank Assessments | 30 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |