This repository contains code for solving competitive programming problems in three languages: Python, Go, and JavaScript. Each subfolder contains a problem and its solution in the respective language.
To run the code for a specific problem, follow these steps:
-
Navigate to the subfolder for the problem you want to solve.
-
Open a terminal in the subfolder.
-
Run the following command, depending on the language you want to use:
- Python:
python <problem_name>.py
- Go:
go run <problem_name>.go
- JavaScript:
node <problem_name>.js
Replace
<problem_name>
with the actual name of the problem file (e.g.,palindrome.py
,balanced_parentheses.go
,count_substrings.js
). - Python: