← Back to experiences
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/experiences/…$
I recently had a phone screen with Pinterest for an L14 SWE 2 position. I was asked the following question: Count Subarrays with Score Less Than K from Leetcode. Initially, I brute forced the solution. The interviewer asked me about ways to optimize it. After a few hints from the interviewer, I proposed a solution using binary search. The interviewer suggested that the score is increasing. I was able to code up the solution and run two test cases that passed. I passed to the onsite stage.