GoodScore SDE2 interview

goodscore logo
goodscore
· SDE II
September 24, 2026 · 0 reads

Summary

I interviewed for an SDE2 position at GoodScore, discussed two coding problems, and was ultimately rejected.

Full Experience

  1. Counting Bits

    Solved first using brute force: O(n log n) Then optimized to O(n) using a single-pass DP approach. Both approaches were discussed.

  2. Minimum Jumps to Reach Home

    Initially solved using DP. The solution was accepted. The expected approach from the interviewer was BFS using a queue, since the problem can be modeled as a shortest‑path problem where each position is a state. Did not switch to the expected BFS approach during the interview.

Verdict: Rejected

Interview Questions (2)

1.

Counting Bits

Data Structures & Algorithms·Easy

Given a non‑negative integer n, return an array ans of length n + 1 where ans[i] is the number of 1 bits in the binary representation of i.

For example, for n = 2, the answer is [0,1,1] because:

  • 0 in binary is 0 → 0 set bits
  • 1 in binary is 1 → 1 set bit
  • 2 in binary is 10 → 1 set bit
2.

Minimum Jumps to Reach Home

Data Structures & Algorithms·Medium

You are at position 0 on an infinite number line. Your home is at position home. You can make the following moves:

  • Jump forward by a units.
  • Jump backward by b units.
  • Jump to any forbidden position listed in the array forbidden (these positions are blocked).

Find the minimum number of jumps required to reach home without landing on a forbidden position. If it is impossible, return -1.

Constraints typically include 0 <= forbidden.length <= 1000, 1 <= a, b, home <= 2000.

📣 Found this helpful? Please share it with friends who are preparing for interviews!

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!