Congrats! You've earned
a new badge!

Results

Viewing {{ resultInfo.email }}'s solution.
Viewing {{ resultInfo.user }}'s solution.
Redo Challenge
Next Challenge
Continue Assessment →
View Solutions

{{ chalInfo.title }}

{{ chalInfo.title }}

{{ showChallengeDetails ? 'Hide' : 'View' }} Question
:)
Your solution has been saved.
The interviewer has been notified of your submission.
{{ scoreDisplay.testCases[0] }}
Test Case Points
{{ scoreDisplay.timing[0] }}
Time Period Points
{{ scoreDisplay.timing[1] }}
{{ scoreDisplay.total }}
Total Points

O(...)

This is the running time of your algorithm expressed in Big-O notation. Big-O notation is used to classify algorithms according to how their run time grows as the input size grows. To learn more here is a guide on how it works.

Above will be the running time of your algorithm expressed in Big-O notation. Big-O notation is used to classify algorithms according to how their run time grows as the input size grows. To learn more here is a video we published on this topic, and here is a guide on how it works.

It may take a few minutes for it to finish calculating.

Runtime not calculated

Big-O notation is used to classify algorithms according to how their run time grows as the input size grows. To learn more here is a guide on how it works.

This challenge does not support runtime calculation.

Runtime not calculated

Above will be the running time of your algorithm expressed in Big-O notation. Big-O notation is used to classify algorithms according to how their run time grows as the input size grows. To learn more here is a guide on how it works.

Your solution needs to pass all the test cases for the runtime to be calculated.

You do not have permission to view this solution.

You need to be a premium member to see this user's solution to the challenge.

  • Scores

    This user scored higher than {{ chartPlaceholders.scoreHigher }}% of users who solved this challenge.

  • Time

    This user solved this challenge in {{ resultInfo.scoring.userTime === '0' ? ('< ' + 0) : resultInfo.scoring.userTime }} minutes. The majority of users solved it in about {{ chartPlaceholders.majorityTime }} minutes.