79228107

Date: 2024-11-26 20:05:41
Score: 1
Natty:
Report link

For subMap(), the time complexity is O(log n + m) where m is the number of entries needed to return for the submap.

See https://algs4.cs.princeton.edu/code/javadoc/edu/princeton/cs/algs4/RedBlackBST.html#size(Key,Key)

The keys methods take O(log n + m) time, where m is the number of keys returned by the iterator.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jzleetcode.github.io