Welcome to the Code Challenges repository! This space is dedicated to practicing various coding challenges to improve my problem-solving skills and coding abilities.
In this repository, you'll find a collection of code challenges covering different topics such as algorithms, data structures, problem-solving techniques, and more. The challenges are designed to help sharpen my skills, explore new concepts, and enhance my understanding of programming principles.
Feel free to explore the challenges, attempt them, and submit your solutions.
You can clone this repo if you would like to practice on your own and build a collection of challenges you've conquered!
To get started:
-
Clone this repository to your local machine:
git clone <repository_url>
. -
Navigate to the directory:
cd code_challenges
and runnpm i
. -
When you're in this directory, in your terminal run
code .
. If Visual Studios is installed on your computer, this file will be opened up in a new window. -
Each code challenge has its own directory, containing a JS file for the code challenge, a READEME doc and a jest test file. The README file contains the instructions for the challenge and also a breakdown of my solutions approach.
-
Implement your solution! Run
nodemon <file_name>
to run your file locally in the terminal to test you code in the console as you go. Remember to navigate to the directory where the file is located in your terminal before runningnodemon <file_name>
. -
If you implement a new solution, re-use the function name, this way when you're ready to really put your solution to test, you can use the jest tests already written. You can run this by typing
npm test
in the terminal. I have already set up a script for this! -
Optionally, you can submit your solution by creating a pull request.
Contributions to this repository are welcome! If you have a new code challenge to add or you want to improve existing ones, feel free to open a pull request.
- Find the odd integer
- Return Negative
- Longest common prefix
- Closing Parentheses
- Merge Two Sorted Lists
- Length of Last Word
Happy coding!