USA | Grammarly (Superhuman) | Technical Phone

Anonymous User
686
Jan 22, 2026

Computer Science fundamentals round

Question

Fun with words!

You can google syntax. Test cases are provided, but b/c this is in hackerrank environment, if you failed a test case, you can't see the case.

The interviewer luckily told me the failing test case and we worked on fixing the bugs

Level 1

  • Given a list of words, count the number of distinct anagram pairs
  • The question was not well defined and there were multiple edge cases that were not described in the question or the provided test cases. Interviewer also admitted the "questions aren't well formed"
  • I was asked to optimize my implementation to linear time complexity.

Level 2

  • Given a list of words, identify the number of distinct compound words that can be formed where the compound word is in the list. Example, if you have [pan, cake, pancake], that's one distinct compound word you can form.

  • You have to combine words fully. No partial prefix/suffix snipping allowed

  • This question was also not well formed according to the interviewer, so I ended up with a brute force. I wasn't asked to optimize

Level 3

  • Given a list of words, identify all the words (in order of appearance in the list) that can be decomposed into 2 or more words where each word exists in the list
  • I got most of the implementation but minor edge cases to be fixed. Interviewer seemed happy with my progress

Reflection

  • Standard LC unfortunately
  • Interviewer was very chill and was collaborative
Comments (2)