Hello!
Enclosed in this repositry you'll find 2 folders; 'Cleffa' and 'Clefairy'. In these, you will find 2 similar problems that you might find on leetcode, codewars etc. 'Cleffa' is more or less an 'easy mode' of the 'Clefairy' problem, so I'd suggest starting with the Cleffa problem if you're not super comfortable diving right into the harder one.
After cloning the repository and opening with whatever IDE you'd like, you'll need to install vitest to test your soloution, so run npm install
(or any other method of your choosing) in the terminal to grab the dependancies you need.
From there, flick open the folder of the problem you wish to solve and their corresponding .js
, .test.js
, and the .md
file. This will be where you write your soloution, where you can read the tests that'll be performed, and what the problem is as well as some advice on how to solve it respectivly. You can also look in the Soloution.js
files for annotated soloutions to the problems.
Once you think you have created a soloution, run the line: npm run test cleffa.test.js
or npm run test clefairy.test.js
in the terminal, depending on which problem you're solving. Best of luck!