You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
m as root node with priority 4 is lower than it's sons.
The reason is in https://github.com/steveyen/gtreap/blob/master/treap.go#L86
When middle is not nil, use middle's priority as result node's priority
Always use this.priority should get the correct answer.
The text was updated successfully, but these errors were encountered:
It prints
m
as root node with priority 4 is lower than it's sons.The reason is in https://github.com/steveyen/gtreap/blob/master/treap.go#L86
When
middle
is not nil, usemiddle
's priority as result node's priorityAlways use
this.priority
should get the correct answer.The text was updated successfully, but these errors were encountered: