Snapchat - Phone Interview - Reject
Anonymous User
2677

Behavioral:

  • Why Snap?
  • Talk about a past mistake

Coding:
https://leetcode.com/problems/palindrome-linked-list/
However, the ListNode was generic but based on the question requirement I used integer as value of each node.
After clarifying questions, I explaned my solution (reverse the second half and compare each node from first half to the second half).

I quickly wrote the code as clean as I could. However, for comparing values of nodes I used something like if (node1.val==node2.val) continue; instead of if (node1.val.equals(node2.val)) continue; (or calling intValue()). As a result, 2 test cases didn't pass.
The interviewer told me there is an issue in this line and I mentioned that we should use equal instead of == since we are comparing objects. The interviewer mentioned that many engineers make this mistake.

We had 10 minutes left at the end of the interview and I asked about snap culture. They didn't event bother to let me know that I'm rejected even after I followed up with them a week after!

Comments (1)