AlgoGenesis / C

AlgoGenesis is a centralized open-source platform dedicated to providing optimized and well-documented algorithm implementations in C. Perfect for both beginners and advanced users, this repository serves as a comprehensive learning resource for solving algorithmic challenges.
MIT License
73 stars 231 forks source link

[UPDATE ALGORITHM] Hash Algothrims #870

Closed 13Sharad closed 5 days ago

13Sharad commented 6 days ago

Description:

This update enhances the DJB2 hash algorithm implementation by adding NULL input handling, improving code organization, and providing a user input feature for interactive hashing. These changes ensure that the algorithm can gracefully handle edge cases and provide users with a more robust experience.

Checklist:

Affected Algorithm:

DJB2 Hash Algorithm, located in the hashing directory.

Additional Information:

1.The update includes a test function to verify the correctness of the DJB2 implementation. 2.User input functionality allows users to hash their strings directly. 3.The code now handles NULL inputs gracefully by returning 0.

pankaj-bind commented 5 days ago

Do not create unnecessary PR until you complete the previous one.