Software Engineer Staff Interview Questions

2,555 software engineer staff interview questions shared by candidates

Here is the JSON file that is needed to be parsed: https://pastebin.com/EJCXLpwa // /* // =========================================================================== // Coding Interview - Part 2 (Onsite) // =========================================================================== // Calm is a subscription business, in this exercise, you will work with a // subscription model and implement a few real business logic cases that // represent how we handle user subscriptions. // This is a continuation of the features you’ve implemented in a previous // interview. Like last time, we’ll be working with the JSON file data model // for subscriptions and sessions. // In this part of the coding problem, you will help develop the algorithm of // a social feature. Creating a Calm Leaderboard! To create the leaderboard, // we will rank users from the longest streak to shortest streak. // Users with the longer streak (consecutive days where they have a session) // ranks higher than those with a shorter streak. The user with the longest // streak is ranked first, and the user with the shortest streak is last. // - The leaderboard should print users in the order of highest rank to lowest // rank, and include their respective streak length. // - We want to be able to see the leaderboard for any given day. The target day // should be configurable via a parameter. // - If there is a tie in streak length, then compare the number of distinct days // in which the user starts a session as a tie breaker. // ===========================================================================
avatar

Staff Software Engineer

Interviewed at Calm

3.2
Feb 19, 2025

Here is the JSON file that is needed to be parsed: https://pastebin.com/EJCXLpwa // /* // =========================================================================== // Coding Interview - Part 2 (Onsite) // =========================================================================== // Calm is a subscription business, in this exercise, you will work with a // subscription model and implement a few real business logic cases that // represent how we handle user subscriptions. // This is a continuation of the features you’ve implemented in a previous // interview. Like last time, we’ll be working with the JSON file data model // for subscriptions and sessions. // In this part of the coding problem, you will help develop the algorithm of // a social feature. Creating a Calm Leaderboard! To create the leaderboard, // we will rank users from the longest streak to shortest streak. // Users with the longer streak (consecutive days where they have a session) // ranks higher than those with a shorter streak. The user with the longest // streak is ranked first, and the user with the shortest streak is last. // - The leaderboard should print users in the order of highest rank to lowest // rank, and include their respective streak length. // - We want to be able to see the leaderboard for any given day. The target day // should be configurable via a parameter. // - If there is a tie in streak length, then compare the number of distinct days // in which the user starts a session as a tie breaker. // ===========================================================================

Viewing 1431 - 1440 interview questions

Glassdoor has 2,555 interview questions and reports from Software engineer staff interviews. Prepare for your interview. Get hired. Love your job.