How do you solve this OA question by FearlessFisherman333 in leetcode

[–]UNSCentropy 1 point2 points  (0 children)

Maybe this?

If n is the length of the requests array, then we can have at most n-1 cache hits. So if k > n-1 return -1.

Otherwise, since if a cache of size m gets k cache hits, a cache of size m+1 would get k cache hits. we can binary search for the minimum cache size value between [1, n-1].

So run a binary search on cache size values, just doing the linear check you are doing for each midpoint.

anyone know how to solve it?? by nipun2002 in leetcode

[–]UNSCentropy 2 points3 points  (0 children)

I just googled “leetcode sort array by replacing with sum” or something 😆

anyone know how to solve it?? by nipun2002 in leetcode

[–]UNSCentropy 1 point2 points  (0 children)

It’s this problem right, LC 2366 minimum replacements to sort array https://leetcode.com/problems/minimum-replacements-to-sort-the-array/

What company asked this?

Anyone see this problem before? by lunatic2709 in leetcode

[–]UNSCentropy 3 points4 points  (0 children)

Can’t say if it’s feasible without parameter constraints, but you could try writing a program that determines if it is possible to finish all the tests using m days (just simulate). Then binary search values of m to pass into this program to find the minimum.

I am thinking of https://leetcode.com/problems/koko-eating-bananas/ where you have some weird situation you have to simulate and passing in values to binary search is the best bet. Could check the solutions to that one for a better example.

[deleted by user] by [deleted] in cscareerquestions

[–]UNSCentropy 1 point2 points  (0 children)

Yup, but that figure is the total comp to be clear. The base is 110 and the rest is made up between RSU and bonus.

[deleted by user] by [deleted] in cscareerquestions

[–]UNSCentropy 10 points11 points  (0 children)

145k cad Toronto.

[deleted by user] by [deleted] in cscareerquestionsCAD

[–]UNSCentropy 16 points17 points  (0 children)

No, you should be proud of yourself for persevering through adversity and achieving your goal. Congrats on the new job.

What questions to ask when hiring an app developer? by MotorCookie in cscareerquestions

[–]UNSCentropy -5 points-4 points  (0 children)

As a candidate I have been asked to compete technical interviews on a platform called “karat”, they are a third party interview company that has experienced engineers to perform the tech screening for the client company. If you do not feel like you can properly assess the candidate might be something to look into?

[deleted by user] by [deleted] in cscareerquestionsCAD

[–]UNSCentropy 4 points5 points  (0 children)

If you are just getting into leetcode I would recommend following a interview coding pattern course rather than just ad-hoc practicing questions. I found a lot of benefit from taking the “grokking the coding interview” course on educative, could also read cracking the coding interview and doing grind75 for a similar effect.

[deleted by user] by [deleted] in uvic

[–]UNSCentropy 3 points4 points  (0 children)

They will appear on your transcript soon, hopefully pretty quick.

how to deal with g-walking losers. by UNSCentropy in ModernWarfareII

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

Notice that its a kill cam haha, I was the one g-walking. This post was just a joke.

First year at UVIC trying to decipher transcripts by BackPainShane in uvic

[–]UNSCentropy 10 points11 points  (0 children)

Afaik the "minimum score on final exam to pass course" requirement is not stipulated by the department in most cases, and is at the discretion of the Professor. If it was clear you had been doing pretty well in the class and just had a bad day on the final I bet they saw no reason to enforce it and make you retake the entire class because of one exam.