Leetcode 169: Majority Element. O(nlogn) is faster than O(n)!?

Publicado el: 11 febrero 2024
en el canal de: Teach Me Python
527
15

This could get controversial, but using built-ins might just be better than building your own clever solution even if the clever solution is of a faster time complexity at face value.

(I did test this on my own computer for lists from size 10 to 10000000, and every time built in sort beat out linear for loop.


En esta página del sitio puede ver el video en línea Leetcode 169: Majority Element. O(nlogn) is faster than O(n)!? de Duración hora minuto segunda en buena calidad , que subió el usuario Teach Me Python 11 febrero 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 527 veces y le gustó 15 a los espectadores. Disfruta viendo!