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:

MethodParameterReturns
TypeMeaning
`unlock`combinationstringSounds you can hear
No Sound
clickThe first part of the combination is correct
click-clickThe first two parts of the combination are correct
click-click-clickThe combination is correct.
Now you can turn the handle to open the safe.

`open`-intThe 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 right R
  • Numbers on the dial 00 - 99
  • Each part of the combination is separated by -

e.g. L23-R67-R09

Algorithms

Stats:

CreatedJul 7, 2018
PublishedJul 9, 2018
Warriors Trained1629
Total Skips41
Total Code Submissions4307
Total Times Completed463
Java Completions106
JavaScript Completions263
C# Completions78
Ruby Completions26
Total Stars38
% of votes with a positive feedback rating93% of 126
Total "Very Satisfied" Votes111
Total "Somewhat Satisfied" Votes13
Total "Not Satisfied" Votes2
Total Rank Assessments8
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • dinglemouse Avatar
  • joecastle Avatar
  • Firefly2002 Avatar
  • hobovsky Avatar
  • SethLemanek Avatar
Ad