Karthik Rajan1 month agoMost voted6
Q2 is rotting oranges. put all starting servers in the queue together and do one BFS
HackerRank, 2 questions, 70 min + work style survey after.
Q1: longest substring with at most k distinct characters (sliding window)
Q2: grid, servers updating neighbours each day, minimum days until all updated
Q1 all test cases. Q2 11/14, TLE because I ran a separate BFS from every updated server 🤦 waiting for result.
Q2 is rotting oranges. put all starting servers in the queue together and do one BFS
@Karthik yeah realised that 5 min after submitting
do partial test cases count?
@Sakshi seniors said one full + one partial can still go through. let's see
Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.