# HackerRank Solutions — Bug Report & PR Description #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Date: 2026-01-28
Repo: https://github.com/zwbproducts/HackerRank-Solutions
Summary
This PR fixes repository-hygiene issues that made the repo awkward to use in shells and automation:
Problems found (and fixed)
1) Critical: filenames with spaces
Problem: Many source files used spaces in filenames (e.g.,
algo rotation.c).Impact: Breaks common tooling and CI scripts unless everything is carefully quoted.
Fix: Renamed to snake_case with no spaces and moved under
solutions/.2) Missing docs
Problem: No README / contributing guidance / style guidance / changelog / code of conduct.
Fix: Added:
README.mdCONTRIBUTING.mdCHANGELOG.mdCODE_STYLE.mdCODE_OF_CONDUCT.mdsolutions/README.md3) Flat repo structure
Problem: All solution files were in the repository root.
Fix: Introduced:
solutions/c/(C)solutions/cpp/(C++)4) Extension/code mismatch
Problem: Several
.cfiles were actually C++ (e.g.,#include <iostream>).Fix: Moved those to
solutions/cpp/and renamed them to.cpp.File moves / renames
C:
ceasar cipher.c→solutions/c/caesar_cipher.cC++:
algo rotation.c→solutions/cpp/algo_rotation.cppAngryprofessor.c→solutions/cpp/angry_professor.cppangry children.cpp→solutions/cpp/angry_children.cppbus station.c→solutions/cpp/bus_station.cppcavity map.c→solutions/cpp/cavity_map.cppchocolate feast.c→solutions/cpp/chocolate_feast.cppcut the sticks.c→solutions/cpp/cut_the_sticks.cppfind digits.c→solutions/cpp/find_digits.cppfind median.cpp→solutions/cpp/find_median.cppflowers.cpp→solutions/cpp/flowers.cppgrid search.c→solutions/cpp/grid_search.cppk candy store.c→solutions/cpp/k_candy_store.cppmanasa and stones.c→solutions/cpp/manasa_and_stones.cppminimum draws.cpp→solutions/cpp/minimum_draws.cpprunning time.cpp→solutions/cpp/running_time.cppservice lane.c→solutions/cpp/service_lane.cppsherlock and beast.c→solutions/cpp/sherlock_and_beast.cppsongs of pi.cpp→solutions/cpp/songs_of_pi.cpputopian tree.cpp→solutions/cpp/utopian_tree.cppHow to build
See
README.mdfor simple compile/run examples.Notes
This PR intentionally focuses on repository usability and maintainability. It does not attempt to rewrite algorithms or change solution behavior.