Third Max Value

preview_player
Показать описание
What's up ladies and gentleguys, I hope you're a fan of boring coding problems! I got just the episode here for you if you do. On a real note, I have no idea what I am doing with my life and will continue to try and make use of my computer science degree despite the fact that I still work in retail! Haha! Still not sure what direction this channel is gonna take, making videos takes a long time for me but the end product is always fun to see.

Hope you have a wonderful day, and keep on doin your darndest.

Opening and closing music:
Рекомендации по теме
Комментарии
Автор

Why don't you just sort the set? Time complexity is O(n log n). Then you check if the length is >= 3 and then you return the third last value. (But I like your video it is entertaining :) Keep it up)

metinEsturb