GridVids
Sign in with YouTube

Find Majority Element in an Array using Binary Search Tree O(n logn)

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

Vivekanand Khyade - Algorithm Every Day 5 years ago

Finding majority element in an array using Binary Search Tree takes O(n log n) time complexity. This is a very popular computer science /Algorithms' interview question.

Construct a Binary Search Tree :- https://youtu.be/mvF9fu53eeU GitHub Code Link :- https://github.com/vivekanand44/codes-Youtube-videos/blob/master/majorityElement.cpp