Skip to content

bug fix for hash-based and path-based trie demo code#7

Open
ping-ke wants to merge 1 commit intoqizhou:mainfrom
ping-ke:fix
Open

bug fix for hash-based and path-based trie demo code#7
ping-ke wants to merge 1 commit intoqizhou:mainfrom
ping-ke:fix

Conversation

@ping-ke
Copy link
Copy Markdown

@ping-ke ping-ke commented Jan 6, 2026

Changes:

  1. Updates get_nbit to traverse key bits in ascending order (0 → 255) for hash.py & path.py.
  2. Updates test cases so that input keys are consistent with the corrected get_nbit behavior and expected tree evolution.
  3. Modify boundary bug in loops.
  4. Update expected behavior for path.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant