-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: KaririCode-Framework/kariricode-data-structure
base: v1.0.1
head repository: KaririCode-Framework/kariricode-data-structure
compare: main
- 8 commits
- 17 files changed
- 4 contributors
Commits on Sep 27, 2024
-
refactor(Tree): Move TreeMapNode to Tree directory and add TreeNode w…
…ith tests - Moved TreeMapNode class to the Tree directory for better structure. - Created TreeNode.php with full implementation. - Added comprehensive tests for TreeNode, covering left and right child handling, parent removal, and node replacement. - Ensured 100% test coverage for TreeNode functionality.
Configuration menu - View commit details
-
Copy full SHA for 8cc515e - Browse repository at this point
Copy the full SHA 8cc515eView commit details -
Merge pull request #13 from KaririCode-Framework/develop
refactor(Tree): Move TreeMapNode to Tree directory and add TreeNode w…
Configuration menu - View commit details
-
Copy full SHA for 9a49838 - Browse repository at this point
Copy the full SHA 9a49838View commit details
Commits on Oct 10, 2024
-
refactor(Collections): improve ArrayList and LinkedList implementations
This commit enhances both ArrayList and LinkedList classes to provide better key handling, consistent exception throwing, and support for mixed key types. It improves type safety, performance, and API consistency. ArrayList changes: - Add isValidArrayKey method for key validation (int or string) - Update set method to throw exceptions for invalid keys and out-of-range indices - Modify hasKey method to use isValidArrayKey and array_key_exists - Update get method to use the new hasKey implementation - Add keyToString method for better error messages - Simplify contains method using in_array for better performance LinkedList changes: - Modify set and get methods to support mixed key types - Implement findNode method to locate nodes by index or value - Add compareValues method for flexible element comparison - Update exception messages to include key information - Ensure consistent behavior between numeric and non-numeric keys General: - Update method signatures to use mixed type consistently across both classes - Improve code comments and method descriptions
Configuration menu - View commit details
-
Copy full SHA for 6f17c43 - Browse repository at this point
Copy the full SHA 6f17c43View commit details -
Merge pull request #14 from KaririCode-Framework/develop
refactor(Collections): improve ArrayList and LinkedList implementations
Configuration menu - View commit details
-
Copy full SHA for 91c9e7e - Browse repository at this point
Copy the full SHA 91c9e7eView commit details
Commits on Oct 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e12252b - Browse repository at this point
Copy the full SHA e12252bView commit details -
Merge pull request #15 from KaririCode-Framework/develop
fix: remove check hasKey in set method
Configuration menu - View commit details
-
Copy full SHA for c966a11 - Browse repository at this point
Copy the full SHA c966a11View commit details
Commits on Jul 31, 2025
-
fix(style-code): Resolve static analysis errors and improve type safety
This commit addresses a series of issues identified by PHPStan, enhancing the overall type safety and robustness of the data structures. - **BinaryHeap:** Corrected type inference by specifying the heap property as a `list`, which eliminates the need for explicit integer casting when removing elements. - **TreeMap/TreeMapNode:** Fixed a potential null pointer exception in `balanceAfterInsertion` by adding a safety check for the grandparent node. - **HashMap:** Refactored to use a consistent internal key handling mechanism, resolving type errors and adding proper support for object keys. - **ArrayList:** Fixed a `Cannot cast mixed to string` error by explicitly handling the `resource` type. - **phpstan.neon:** Cleaned up the configuration by removing obsolete ignored error patterns.
Configuration menu - View commit details
-
Copy full SHA for 997d798 - Browse repository at this point
Copy the full SHA 997d798View commit details -
Merge pull request #16 from KaririCode-Framework/develop
fix(style-code): Resolve static analysis errors and improve type safety
Configuration menu - View commit details
-
Copy full SHA for 1fc9068 - Browse repository at this point
Copy the full SHA 1fc9068View 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 v1.0.1...main