-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: kaitenague/algorithms-cpp
base: master
head repository: TheAlgorithms/C-Plus-Plus
compare: master
- 19 commits
- 64 files changed
- 11 contributors
Commits on May 19, 2025
-
Revert "chore: use annotations instead of in house linter (TheAlgorit…
…hms#2905)" (TheAlgorithms#2944) This reverts commit 41653de.
Configuration menu - View commit details
-
Copy full SHA for c26eea8 - Browse repository at this point
Copy the full SHA c26eea8View commit details -
Update merge_sort.cpp (TheAlgorithms#2818)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3f6876f - Browse repository at this point
Copy the full SHA 3f6876fView commit details -
docs: add time and space complexity to quick_sort.cpp (TheAlgorithms#…
…2819) * Complexity quick_sort.cpp Space Complexity Time complexity * Update sorting/quick_sort.cpp Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com> * Update sorting/quick_sort.cpp Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com> --------- Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for da53b26 - Browse repository at this point
Copy the full SHA da53b26View commit details
Commits on May 25, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 93a700c - Browse repository at this point
Copy the full SHA 93a700cView commit details
Commits on Jul 9, 2025
-
Couple of issues and areas for improvement. (TheAlgorithms#2841)
1. Typographical Error in Doxygen Comment In the Doxygen comment at the beginning of the file, "Merege Sort" should be corrected to "Merge Sort". 2. Merging Logic In the merge function, the merging logic can lead to out-of-bounds access if both sub-arrays have been completely traversed. The condition in the while loop should ensure that you only access elements of L and R if they are within bounds: 3. Memory Management Using new and delete[] for the temporary arrays (L and R) is fine, but you can also use std::vector from the C++ Standard Library to simplify memory management: 4. Input Validation You should consider adding input validation when reading the number of elements and the actual elements to avoid undefined behavior. 5. Main Function Improvements You can also enhance the main function by encapsulating the input logic in a separate function, improving readability. Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f1eddf4 - Browse repository at this point
Copy the full SHA f1eddf4View commit details
Commits on Aug 14, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 3f0409d - Browse repository at this point
Copy the full SHA 3f0409dView commit details -
style: remove unused variables (TheAlgorithms#2946)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d4962c3 - Browse repository at this point
Copy the full SHA d4962c3View commit details
Commits on Aug 15, 2025
-
style: remove unused params of
main
(TheAlgorithms#2948)Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fb27d4d - Browse repository at this point
Copy the full SHA fb27d4dView commit details -
Fixed name space problem by removing using namespace std (TheAlgorith…
…ms#2966) Co-authored-by: FuelTheBurn <richarddasunboss@gmail.com> Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 13306be - Browse repository at this point
Copy the full SHA 13306beView commit details -
style: resolve
-Wreorder
(TheAlgorithms#2950)Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 6568ab9 - Browse repository at this point
Copy the full SHA 6568ab9View commit details -
chore: sort subdirectories (TheAlgorithms#2949)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e9caade - Browse repository at this point
Copy the full SHA e9caadeView commit details -
chore: try to comply to C++20 (TheAlgorithms#2978)
* chroe: add cstdint * fix: remove <> from explicit function
Configuration menu - View commit details
-
Copy full SHA for 79aeaa9 - Browse repository at this point
Copy the full SHA 79aeaa9View commit details -
feat: implement optimized two-pointer approach for trapping rainwater (…
…TheAlgorithms#2975) (TheAlgorithms#2976) * feat: optimize trapping rainwater * incorporate changes --------- Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 145111c - Browse repository at this point
Copy the full SHA 145111cView commit details
Commits on Aug 16, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 6393130 - Browse repository at this point
Copy the full SHA 6393130View commit details -
docs: update DIRECTORY.md (TheAlgorithms#2980)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for a77ce5c - Browse repository at this point
Copy the full SHA a77ce5cView commit details
Commits on Aug 17, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 93c64b5 - Browse repository at this point
Copy the full SHA 93c64b5View commit details -
feat: add algorithm to find the number of paths in a graph using DFS (T…
…heAlgorithms#2815) * feat: add count_paths algorithm with a test case * fix: updated number_of_paths algorithm, added more test cases, and set unsigned int as parameter * fix: replaced unsigned int with std::uint32_t for fixed size * fix: Handled empty graph, invalid input and added test cases for the same * clang-format and clang-tidy fixes for 80e27ba --------- Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b30bdd3 - Browse repository at this point
Copy the full SHA b30bdd3View commit details
Commits on Aug 18, 2025
-
Configuration menu - View commit details
-
Copy full SHA for c917fc4 - Browse repository at this point
Copy the full SHA c917fc4View commit details
Commits on Aug 19, 2025
-
chore: make acceleration due to gravity a constexpr (TheAlgorithms#2982)
* Added constexpr GRAVITY constant (9.80665) as per guidelines * Merge branch 'master' into feature/add-gravity-constant * Update physics/ground_to_ground_projectile_motion.cpp Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com> * Merge branch 'master' into feature/add-gravity-constant
Configuration menu - View commit details
-
Copy full SHA for c39d84b - Browse repository at this point
Copy the full SHA c39d84bView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master