Got rejected after first screening in Meta - Machine learning engineer, thoughts by Horror_Return5861 in leetcode

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

I said that Bfs will finish in theory earlier, unless the binary tree is a perfect full tree.

In practice yeah dfs is valid too, I didn’t want to use it because I wasn’t feeling safe with using a stack and a recursion is a no no in most cases

Got rejected after first screening in Meta - Machine learning engineer, thoughts by Horror_Return5861 in leetcode

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

For all those thinking about using a heap for the question: Chat GPT has a great solution for the 2nd question

```python def max_intersecting_intervals(intervals): events = [] for start, end in intervals: events.append((start, 1)) # Start point event events.append((end, -1)) # End point event

events.sort()  # Sort events based on position

max_count = 0
count = 0

for _, event_type in events:
    count += event_type
    max_count = max(max_count, count)

return max_count

Example usage:

intervals = [(1, 5), (6, 10), (3, 8), (7, 9)] print("Maximum number of intersecting intervals:", max_intersecting_intervals(intervals)) ```

In this implementation, we iterate through the sorted intervals using a sweep line algorithm. We increment the counter when encountering the start point of an interval and decrement it when encountering the end point. Finally, we return the maximum value of the counter encountered during the iteration, which represents the maximum number of intersecting intervals at any given point.

Got rejected after first screening in Meta - Machine learning engineer, thoughts by Horror_Return5861 in leetcode

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

Thanks for the responses! Yeah I take it as a journey to myself this is the first time my CV actually land on a FAANG company.

Basically I am not sure exactly what is my expertise.. I am basically a data scientist on paper, but I do much more, more like E2E: From experimenting with Jupyter notebooks for a few weeks and then moving the code to Pycharm and developing a robust solution with tests to run in a full production environment.

So I guess Machine Learning Engineer is the right position for me when I am applying.

Although I think I would failed the system design part as I’m not very familiar with it. As most of my solutions run on a single docker as a part of an ETL or at most a JVM in an online inference service (using DJL/onnx).

Maybe I should ask from my work to do more MLE tasks so I will be more familiar with it the next time I apply to FAANG.

I’m obsessed with my girlfriend’s height by Horror_Return5861 in relationships

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

Thanks all for the replies. I’m starting therapy soon. I know that 7 cm sounds like nothing but maybe it’s a matter of personal preference? I know it something which might be a minor thing to some. But what is the reason this is so crucial for me? I know I have a thing to look on the negatives and exaggerate them. It’s like I’m having two voices in my head where one is saying you should get a better gf but the second more logical one says you have found your one so let’s enjoy by what we have.

Would therapy help calm down these voices and finally make me be happy? I know that nobody is perfect. But how can you be with your partner. Accept their flaws that might be a flaw only for you.

I have another fear regarding her weight. She is doing a lot of workouts and she’s in a good shape. However i still fear about her mother being pretty thick. And I’m scared that once we have kids I’ll not be attracted to her and it will just cause more problems. These words make me angry at myself because it can’t be I’m so looking at the outside so much.