Python Coding Challenge - October 2024 | Majority Element

  Рет қаралды 227

James Clare

James Clare

Күн бұрын

Пікірлер: 16
@danielclare2079
@danielclare2079 Ай бұрын
Great video. Very helpful
@pythonwithjames
@pythonwithjames Ай бұрын
Glad you think so!
@Carberra
@Carberra 23 күн бұрын
Completely missed this when it came out, whoops! 😅 Interesting to see all the other solutions ~~that didn't cheat like I did~~ lmao.
@pythonwithjames
@pythonwithjames 22 күн бұрын
haha :D The December problem is out, if you wanna have a try?
@j7m7f
@j7m7f Ай бұрын
If you can assume that there is majority in the input, the fastest solution is just to sort the list and take element in the middle.
@pythonwithjames
@pythonwithjames Ай бұрын
Ah yeah, that’s a super smart idea!! cheers :)
@rutabega306
@rutabega306 Ай бұрын
Sorting is O(nlogn). Optimal solution is O(N) So sorting is a good solution, but not "fastest"
@j7m7f
@j7m7f Ай бұрын
@rutabega306 right
@pythonwithjames
@pythonwithjames Ай бұрын
@@rutabega306 thanks for the input :)
@murphygreen8484
@murphygreen8484 Ай бұрын
Did my solution not make it?
@pythonwithjames
@pythonwithjames Ай бұрын
Hello! Did it get sent via email?? I can re-upload with it at the start, awfully sorry!
@murphygreen8484
@murphygreen8484 Ай бұрын
@pythonwithjames no worries! I think I had a hard time finding your email. I can submit for next month's 👍🏼
@pythonwithjames
@pythonwithjames Ай бұрын
Apologies again! I'll be releasing Novembers fairly shortly. Take care, James-
@murphygreen8484
@murphygreen8484 Ай бұрын
@@pythonwithjames which email should I send the submission to?
@pythonwithjames
@pythonwithjames Ай бұрын
its pythonwithjames@gmail.com Feel free to ping me a Hello and I can reply, just to check its correct.
Avoid These BAD Practices in Python OOP
24:42
ArjanCodes
Рет қаралды 82 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Dear Functional Bros
16:50
CodeAesthetic
Рет қаралды 568 М.
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 252 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 16 М.
13 Python List Tricks Every Programmer Should Know
7:32
Coding Together
Рет қаралды 295
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 164 М.
COMPLETE No-Nonsense VSCode Setup for Python Devs
26:05
ArjanCodes
Рет қаралды 52 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 314 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН