6 kyu
Jewel Thief
263 of 463dinglemouse
Description:
Story
The word is on the street that you claim to be a safe-cracking jewel thief.
But are you?
This Kata will verify your safe-cracking abilities.
Kata
To prove you are a real thief you need to crack the combination of the safe, and then open it and tell me the value of the jewels inside!
The safe
object has two methods:
Method | Parameter | Returns | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Type | Meaning | ||||||||||
`unlock` | combination | string | Sounds you can hear
| ||||||||
`open` | - | int | The value of the safe contents (range 0 - 100,000) |
Combination Format
The safe combination is made up of 3 dial spins.

- Spin the dial left
L
or rightR
- Numbers on the dial
00
-99
- Each part of the combination is separated by
-
e.g. L23-R67-R09
Algorithms
Similar Kata:
Stats:
Created | Jul 7, 2018 |
Published | Jul 9, 2018 |
Warriors Trained | 1629 |
Total Skips | 41 |
Total Code Submissions | 4307 |
Total Times Completed | 463 |
Java Completions | 106 |
JavaScript Completions | 263 |
C# Completions | 78 |
Ruby Completions | 26 |
Total Stars | 38 |
% of votes with a positive feedback rating | 93% of 126 |
Total "Very Satisfied" Votes | 111 |
Total "Somewhat Satisfied" Votes | 13 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 8 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |