@greghogg5: Leetcode 1046 - Last Stone Weight #softwareengineering #softwaredevelopment #java #software #softwarejobs #datastructures #softwareengineer #leetcode #programming #javadeveloper #datastructuresandalgorithms #python #softwaredeveloper #code #FAANG #coding #javascript #javascriptdeveloper #codingisfun #codinginterview #js #html #css #sql #science #math #computerscience #technology #stem

Greg Hogg
Greg Hogg
Open In TikTok:
Region: CA
Friday 01 November 2024 15:00:00 GMT
85515
4096
46
106

Music

Download

Comments

barkenflopsmcgee
Barkenflops Mcgee :
Pretty easy as long as you know what a heap is 🤷‍♂️
2024-11-01 18:57:41
150
beau_himpel
Beau_Himpel :
Were all of the clicking sounds really necessary?
2024-11-02 07:48:50
55
leonnnnnnd
——— :
How do you even do it in C in 40 minutes?
2024-11-06 09:19:42
0
bryanenid
Bryan Enid :
I think js “reduce” might work and substact each turn the result of the previous?
2024-11-03 14:33:02
0
noah1445
Noah :
this is like the easiest problem i've ever seen what
2024-11-02 21:10:38
1
jaaaaaaaaaaaaaaaaaaan
jaaaaaaaaaaaaaaaaaaan :
If this is what nvidias asking then I would like to join
2024-11-01 23:40:18
0
ijustworkhere1111
ijustworkhere1111 :
It’s a leetcode easy because just knowing about a max heap will solve 99% of the problem
2024-11-09 23:00:09
7
josephrent
josephrent :
Seems like an easy to me
2024-11-03 04:00:12
0
clintonputt
clintonputt 🎸💙 :
That’s how I know I’m rusty on leetcode when I forgot how good heaps are for certain problems
2024-11-01 23:37:37
15
milkgazer39
milkgazer39 :
aint this super auto pets?
2024-11-03 20:41:42
2
chaoscontrollll
Reap :
Use a priority queu, put all the numbers in pop two then insert until the length is 1 return the front
2024-11-03 02:44:42
2
juansebastianprietobusta
Juan Sebastian Priet :
what about sorting and updating the first element to be the new value and the second to be 0 same complexity but not need to know what is a heap
2024-11-01 23:22:58
0
rapper.lyng.officiel
Lyng · Close Friends :
No need for a heap. Just sort them initially and then insert the stuff at the appropriate location.
2024-12-19 06:05:57
0
raymond.linz
Ctrl+Z :
Key sorted hashtable in c#, i equal max key, mod 2 the key value, if mod result equal 1, go to next key and subtract, ++ the resulting key value.
2024-12-22 02:01:46
0
zenmasterpitty
Zen Master Pitty :
I just did it using sorting and popping and got beats 100% on leetcode for python
2024-11-04 00:38:41
2
abbas.bhattiiii
Abbas :
😳😳😳
2024-11-02 12:20:29
0
greghogg5
Greg Hogg :
Master data structures and algorithms for FREE at Algomap.io!
2024-11-02 12:27:53
0
serhii8234
serhii :
That’s ridiculous, it has nothing with the real job
2024-11-04 19:32:20
0
bluebirdwatcher
Blue Bird Watcher :
using a third-party library in a live coding interview question is wild
2024-11-07 16:19:17
0
old_man_digger
Old Man Digger :
Hey ChatGPT… how do I solve the last stone weight problem?
2024-11-05 07:05:01
4
jliving22
JLiving22 :
return 1. n = 0
2024-11-02 23:10:48
2
hanizunavailable
hanizunavailable :
😭
2025-01-12 13:36:12
0
br920lol
br920lol :
greedy algo?
2024-12-19 03:29:50
0
elgnairt_evol_errazib
Tonio Loewald :
Don’t work for companies that have dumb trick questions as their bozo filters.
2024-11-04 05:45:08
0
To see more videos from user @greghogg5, please go to the Tikwm homepage.

Other Videos


About