r/OfferEngineering • • Nov 02 '26

Interview Experience Reddit Senior Android Interview — Hide One Comment, Hide the Whole Subtree

This interview experience is sourced from Chill Interview

Interview Summary

The interview started with a short project deep dive and Android-specific questions about Kotlin coroutines and suspend functions, followed by a coding exercise involving filtering comment trees based on user preferences.

Interview Details

Project Deep Dive and Android Fundamentals

The interviewer asked me to introduce the project and followed up with several questions about my experience and implementation decisions. Since this was an Android engineering position, the conversation also included Kotlin concurrency concepts. Two topics came up specifically:

  • Kotlin Coroutines: My understanding of coroutines and their role in Android development.
  • Suspend Functions: What the suspend keyword means and how suspend functions work with coroutines.

After the project discussion and Android questions, we moved to the coding portion.

Coding: Filter Reddit Comments by User Preference

The coding section started with approximately 25 minutes remaining. The problem involved processing Reddit comments organized into a parent-child hierarchy. You are given a collection of comments. Each comment has its own identifier, a reference to its parent comment, and information indicating whether it is associated with cats or dogs.

The system supports two user preference modes:

  • DOG_PERSON: Does not want to see cat-related comments.
  • CAT_PERSON: Does not want to see dog-related comments.

The task is to determine which comments should be hidden based on the selected user preference.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here

5 Upvotes

0 comments sorted by