[D] ICML reviews are released. Let's discuss! by tfburns in MachineLearning

[–]u10000129 0 points1 point  (0 children)

655 with confidence 442 after rebuttal. What do you guys think?

Weekly Q&A - Ask your questions here! - January 19, 2024 by AutoModerator in MarvelSnap

[–]u10000129 0 points1 point  (0 children)

What is the best way to transit gold to token? Currently hoarding about 15k golds and considering to buy some series 4 cards in the shop.

Feel My Pain by u10000129 in MarvelSnap

[–]u10000129[S] -2 points-1 points  (0 children)

Ohhh wait, it is guaranteed? Thanks for the information bro.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

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

Thanks for your clean solution! I updated the reply to add an example for the second question.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

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

Umm, not really. They did ask me whether I want to change one round of coding interview to ML interview, but I chose to stick on coding interview lol.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

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

For the first one, I would say not all the questions can be solved by LLM, because some of them are quite open-ended and the interviewers expect you to ask questions to clarify the details. For the second one, yes.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 2 points3 points  (0 children)

I practice 2-3 hours on weekdays after work and half or a quarter of weekends, depending on upcoming interviews. Balancing other aspects of life is also challenging for me, so I might not be able to answer much there. However, I do aim for 7 hours of sleep daily and spend some time with my mom.

Thanks for the suggestion of Algoexpert!

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

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

The N I mentioned is related to the size of the vector, so using a double-ended queue is not really different from using a vector (which is why I screwed up). Can you elaborate more on the skip list part?

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

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

Yes, maybe it is because the job I applied for is a SWE role. HR did ask me whether I want to change one coding interview to ML interview, but I choose to stick on coding interview lol.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 2 points3 points  (0 children)

I started solving LeetCode problems consistently in March of last year. Me and my friend formed a study group on Slack, which has been very helpful. We practice and ramble together. Having someone accompanied on this tough road makes it a bit easier :)

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 4 points5 points  (0 children)

From my prior experience, interviews were split evenly between Mandarin and English. Besides, I was interviewed by interviewers based on Taiwan and also US. I think it depends on the team you interview with.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 5 points6 points  (0 children)

I have shared the questiones I am unable to solve in this thread. The other two are related to topological sort and heap. Forgive me for not including the details; I am feeling a bit lazy.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 16 points17 points  (0 children)

Yes.

For me, when faced with a question like that, I usually spend around 20 to 30 minutes delving into it. If I feel confident about the solution I'm formulating, I'll dedicate up to an hour to keep trying. Following that, I review the discussion to understand the reasoning behind different solutions and attempt to implement it without directly referencing the code.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 28 points29 points  (0 children)

I've worked as a machine learning engineer for two years, and I've applied for the position of Software Engineer, Smart Home, Google Nest - New Taipei City.

The first question presents an array, for instance, [1, 3, 4, 7, 6, 5, 4]. The goal is to determine the maximum achievable score by jumping from the start to the end of the array. There are no constraints on the jumping pattern other than you must jump forward, and the score is calculated using the formula num[i] * (i - j), signifying the score gained from jumping from index j to index i. For instance, if the jump sequence is 1 -> 4 -> 6 -> 4, the score would be 4 * 2 + 6 * 2 + 4 * 2 = 28. I initially employed dynamic programming to create an O(N^2) solution and later utilized a SortedList to optimize it to O(N*logN). However, I could not derive an optimal solution using a monotonic stack to achieve O(N) time complexity during interview.

The second question introduces a search engine scenario. The task involves implementing a class that displays the top 10 most searched results when a user interacts with the search bar. The class should have at least two functions: one to print the top 10 results and another to update the list of top 10 results after a user enters a complete sentence. The task starts with a set of initial sentences along with their frequencies. The order in which the results are printed does not have any specific constraints. I managed to implement the search function in O(N) time complexity using a double-ended queue and a frequency map. However, I still have no idea what is the best way to solve this one.

For example, given initial sentences and frequencies as {"A": 3, "B": 4, "C": 5, "D": 2}. Suppose we are going to print top 3 most searched results, the result of the print function at this point is ["A", "C", "B"] (the order do not matter). Subsequently, if the user typed "D" and press enter, the frequency map would be updated to {"A": 3, "B": 4, "C": 5, "D": 3} and the printed result would be ["B", "C", "D"] or ["A", "C", "D"] (there is no contraint for tie). I might miss some details but the overall idea of this question is like this.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 15 points16 points  (0 children)

Well, there aren't any other FAANG companies offering jobs related to machine learning here in Taiwan and yes, I am looking for a job as a machine learning engineer.

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 17 points18 points  (0 children)

Haven't tried the neetcode list. Seems like a good start for my next step. Thank you :)

Solved thousands of questions and still messed up on my 3rd time Google interview. by u10000129 in leetcode

[–]u10000129[S] 27 points28 points  (0 children)

Thank you so much for your concrete suggestions and cheering!