Loading...
Engaged employer
Find the longest subarray that equals K
Anonymous
I gave the naive approach which is O(n^2). But the interviewer gave prefix sum array and was expecting me to optimize the problem.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.