Python
Python copied to clipboard
All Algorithms implemented in Python
## Description Implements the FNV-1a (Fowler-Noll-Vo) hash algorithm with both 32-bit and 64-bit variants. FNV-1a is a fast, non-cryptographic hash function widely used in hash tables, bloom filters, and caches....
## Description Implements the xxHash32 algorithm, an extremely fast non-cryptographic hash function designed to operate at RAM speed limits. xxHash is widely used in high-performance applications. ## Changes - Added...
### Description Added a beginner-friendly implementation of the linear search algorithm in Python. The implementation includes clear documentation, time and space complexity details, type hints, and example usage for better...
### Describe your change: added a simple algorithm to count vowels and consonants in a string. The function ignores non alphabetic characters. * [x] Add an algorithm? * [ ]...
### Describe your change: * [ ] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm? * [x] Add or change doctests? -- Note: Please...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
Implements reverse number pattern as described in issue #13976. - Added a clean function-based implementation - Includes doctests - Follows project structure and conventions
Problem Description: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Operations: push(x) — Push element x onto the stack. pop() — Removes...
### Description This pull request adds a detailed docstring and type hints to the `two_sum` implementation in the arrays section. The changes improve code readability and maintainability while keeping the...
This PR enhances the repository’s documentation by adding a detailed “Usage Example” section and a new file named USAGE_EXAMPLE.md. The goal is to help beginners and first-time contributors understand how...