O(N log N) because Sorting takes the highest priority over here.
Code -> Understand-> Repeat is my motto. I am a Data Engineer who writes about everything related to Data Science and Interview Preparation for SDE.
Love podcasts or audiobooks? Learn on the go with our new app.