Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atennop1/codeproblemssolutions
Repository for making tasks from Codewars and LeetCode
https://github.com/atennop1/codeproblemssolutions
codewars codewars-solutions cpp learning leetcode leetcode-solutions
Last synced: about 2 months ago
JSON representation
Repository for making tasks from Codewars and LeetCode
- Host: GitHub
- URL: https://github.com/atennop1/codeproblemssolutions
- Owner: Atennop1
- License: mit
- Created: 2024-02-24T14:53:56.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-05-19T19:25:26.000Z (8 months ago)
- Last Synced: 2024-05-19T20:32:15.588Z (8 months ago)
- Topics: codewars, codewars-solutions, cpp, learning, leetcode, leetcode-solutions
- Language: C++
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeProblemsSolutions
This is a repository that stores my solutions to problems from CodeWars and LeetCode, which I do in C++ to study algorithms and the language itself.## Project structure
Problems are divided into their own folders according to difficulty, for CodeWars these are kyu, and for LeetCode the Easy, Normal and Hard difficulties. Each difficulty's problems are in their own namespace to avoid conflicts and each folder has its own `Declarations.h` file, through which you can connect problems to the file. Also there are also files `LeetCode/Declaration.h` and `CodeWars/Declarations.h`, through which you can connect all problems at once.It’s also worth saying that in the case of LeetCode, all problems are in the Solutions class and marked static, so they can be safely called. Thus, calling the 2kyu task "PointerMonster" and the Normal LeetCode problem "IntToRoman" will look like this:
```cpp
#include "CodeWars/Declarations.h"
#include "LeetCode/Declarations.h"int main()
{
SecondKyu::PointerMonster();
LeetCodeNormal::Solutions::IntToRoman(5);
return 0;
}
```