You will find here my proposed solutions for (some) HackerRank questions.
Looking for the answer yourself first would be a good start ! ( ͡° ͜ʖ ͡°)
Knowing C++ and Python won't hurt...
All answers passed the questions' test cases and scored the maximum possible amount.
A decent amount of effort was put into keeping execution time and memory space in check.
I left only the required headers to run the solution on HackerRank.
All C++ code passed SonarLint's inspection, excluding warnings about using std::cin and std::cout.
While I'm more familiar with C++, I occasionally used Python when I felt it would result in leaner, more readable code.
I recommend using PyPy3 instead of Python 3 in HackerRank's language selector - this will set the timeout limit lower for standard challenges ( 4 seconds instead of 10 ). On the other hand you'll benefit from PyPy's wicked fast JIT compiler.
Copy-paste the proposed solution to HackerRank's 'Current Buffer' and test it ¯\_(ツ)_/¯
This project is licensed under the MIT License - see the LICENSE file for details.