This is an internal code challenge for Danbo-day.
-
Setup:
- Clone the repository.
- Run
npm install
.
-
Write Your Solution:
- Open the
solution.js
file. - There is no description for what the challenge is about! You have to figure the pattern out by yourself from analysing the tests and more.
- Implement your solution inside the following function:
function sol(s) { // Your code here }
- Test your solution with command
npm run test
- Open the
-
If you are competing remotely
- Set a timer for one hour, you have to complete the challenge within the time limit. (Our best within one hour was 154 characters)
- After one hour, please make sure all your code is inside the sol function as mentioned above.
- Count your total characters within the sol function.
- Lets see if you can beat our best from Danbo-day: total of 70 characters counted in the function!
-
Your solution must pass all the tests.
-
The solution with fewest characters in the code wins within a hour wins!
-
Do not use Chatgpt or any AI assistance.
-
You can use google.