Skip to content

Conversation

FamALouiz
Copy link

References to Issue

Resolves #630

Brief description of what is created

  • Implemented a Fusion Tree
  • Created test cases for insertion, deletion, and string representation.

@@ -1887,3 +1889,160 @@ def get_sum(self, left_index, right_index):
self.get_prefix_sum(left_index - 1)
else:
return self.get_prefix_sum(right_index)

class FusionTree(object):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should inherit the abstract class. See how other trees are implemented.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@FamALouiz FamALouiz requested a review from czgdp1807 March 19, 2025 13:25
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.

feat: Create fusion trees
2 participants