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:

More By Author:

Check out these other kata created by PG1

Stats:

CreatedOct 6, 2016
PublishedOct 6, 2016
Warriors Trained8322
Total Skips176
Total Code Submissions14699
Total Times Completed7010
JavaScript Completions3257
Python Completions2154
Ruby Completions225
CoffeeScript Completions14
Crystal Completions13
PHP Completions336
Haskell Completions60
Java Completions730
Julia Completions18
C++ Completions423
Total Stars55
% of votes with a positive feedback rating92% of 1229
Total "Very Satisfied" Votes1061
Total "Somewhat Satisfied" Votes138
Total "Not Satisfied" Votes30
Total Rank Assessments30
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • PG1 Avatar
  • zebulan Avatar
  • suic Avatar
  • anter69 Avatar
  • Blackmetalmcdonalds Avatar
  • donaldsebleung Avatar
  • Chrono79 Avatar
  • narayanswa30663 Avatar
  • lekowan Avatar
  • cliffstamp Avatar
  • blu.knite Avatar
  • SergeySinyavskiy Avatar
  • ejini战神 Avatar
Ad