7 kyu

The Office IV - Find a Meeting Room

2,168 of 7,045PG1

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 Trained8342
Total Skips176
Total Code Submissions14750
Total Times Completed7045
JavaScript Completions3270
Python Completions2168
Ruby Completions228
CoffeeScript Completions15
Crystal Completions13
PHP Completions337
Haskell Completions61
Java Completions734
Julia Completions18
C++ Completions428
Total Stars56
% of votes with a positive feedback rating92% of 1236
Total "Very Satisfied" Votes1066
Total "Somewhat Satisfied" Votes140
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