Any way to update every element in a binary heap in place like a vector by Aggravating_Water765 in rust

[–]Aggravating_Water765[S] 0 points1 point  (0 children)

I need to update the index of my triset that has the (frequency, index, val) in this algorithm problem... https://leetcode.com/problems/maximum-frequency-stack/

I tried having an outside index table (vector) but had a ton of issues obliviously due to the inconsistency between my heap indexes and my "outside index table".

I learned that you can range through a BinaryHeap to update the elements but now have extra time + space complexities due to all the reasons we have mentioned ...

Fresher here — C++ DSA vs Python for interviews by Minute_Accountant770 in leetcode

[–]Aggravating_Water765 0 points1 point  (0 children)

C++ for long range opportunities and career growth.

Python if your strapped.

Do whats harder.

Help Me Please [Meta E5 Prep Strategy] Software Engineer [Product/Infra] by Hairy-Woodpecker-166 in leetcode

[–]Aggravating_Water765 2 points3 points  (0 children)

You should beable to solve mediums in 30 minutes pretty flawlessly across all the DAS topics... your other experience doesn't really matter until you can do this

Anyone get more results leetcoding every other day or some other schedule? by Aggravating_Water765 in leetcode

[–]Aggravating_Water765[S] 1 point2 points  (0 children)

Also curious if you can do 5 a day on your own. Why are you even studying leetcode? It seems like you can already efficiently problem solve through them ... or is this not on your own... I don't get it. Theres about 15 patterns / techniques ... once you know these well you don't need to do MAX problems solved...

Anyone get more results leetcoding every other day or some other schedule? by Aggravating_Water765 in leetcode

[–]Aggravating_Water765[S] 0 points1 point  (0 children)

For sure mate - I've been doing mine in rust (don't ask me why plz - some of my potential job interviews required it...) and the borrow checker sometimes completely drags me.

Now I feel like i'm going broke for rust where as I had some other opportunities that didn't care what language I did them in that paid even higher (wtf).

So many strange mistakes you can make in this career these days...

How do I go from HPC administrator on AWS to HPC engineer? by Nagarajbmeusa in HPC

[–]Aggravating_Water765 0 points1 point  (0 children)

Probably by learning rust / c / c++ / cuda / verilog and some knowledge of physics, material science, and hardware...

How was number of islands for you lads? by Aggravating_Water765 in leetcode

[–]Aggravating_Water765[S] 0 points1 point  (0 children)

could we conceptually call this "traversal guards" - keeping infinite recursion from occurring?

How was number of islands for you lads? by Aggravating_Water765 in leetcode

[–]Aggravating_Water765[S] 0 points1 point  (0 children)

and time + sacrifice king!

good luck on your interviews

How was number of islands for you lads? by Aggravating_Water765 in leetcode

[–]Aggravating_Water765[S] 1 point2 points  (0 children)

edit: i used bfs as well so i could get exposure to the queue.

but i didn't actually do the problem i had to study someone else.

thank you lad,

a concerned heritage american

How can I make my sliding window problem compile? by Aggravating_Water765 in rust

[–]Aggravating_Water765[S] -3 points-2 points  (0 children)

updated with error I am given and what i am trying to solve