Loading...
Showing 361-370 of 1571 forum items
The first question involved optimizing task completion given time constraints. I received two lists: one representing the time required for each task, and another representing the time already spent on each task. Given a total time 'x', I needed to prioritize...
The interviewer was a few minutes late and did not turn on her camera. I was asked the following questions: - What is Virtual DOM? - How does virtual DOM help in React? - Which Hooks have you used? - React 18 Concurrent Hooks - Write a Debounce function - Serv...
The prompt described a mutable list supporting append, transform-all, and get operations. A naive solution applies every transformation immediately, but the interviewer pushed toward deferring transformations and composing them efficiently. I kept a queue of p...
I had an onsite interview with LinkedIn for a Machine Learning Engineer role. Here's a breakdown of my experience: **Coding 1:** I was given the problem of finding a meeting point for N people standing on a line such that the sum of L1 distances to the meeting...
The problem description is as follows: A disk stores hierarchical data in the form of an undirected tree. The tree has `tree_nodes` nodes, numbered from `0` to `tree_nodes - 1`, with node `0` as the root. Each node stores a character given by the array `arr`,...
I had five rounds in total. - Round 1: Lazy array problem. - Round 2: File system problem. - Round 3: Design Google Drive/Dropbox. - Round 4: Behavioral questions: hardest challenge, biggest mistake, feedback you don't agree on. - Round 5: Log writer problem....
This was my interview experience at Stripe. **Coding:** 1. Print a letter, which requires replacing `*` and `&` with `0` and `1` using the `replace` function. 2. Print a long sentence, which needs to be truncated at a fixed length, such as 72 characters. If it...