Whatnot logo

Whatnot

Los Angeles, CAE-commerce

Interview Questions

Almost Palindrome Check

Asked at Whatnot
technical
strings
algorithms

Check if a string can become a palindrome by removing at most one character.

Requirements:

  • Allow at most one character deletion
  • Case-sensitive comparison
  • Return true if possible, false otherwise

Example:

Input: "abca"
Output: true
Explanation: Delete 'c' to get "aba"

First Bad Version

Asked at Whatnot
technical
binary search
algorithms

Given a list of version statuses [good, good, good, bad, bad, bad], find the first bad version number.

Requirements:

  • Binary search approach
  • Return 1-based version number
  • Minimize API calls

Example:

Input: [good, good, good, bad, bad, bad]
Output: 4 (first bad version)

Group Anagrams

Asked at Whatnot
technical
strings
hash tables

Group strings that are anagrams of each other.

Requirements:

function groupAnagrams(strs: string[]): string[][]

Constraints:
- 1 <= strs.length <= 104
- 0 <= strs[i].length <= 100
- Only lowercase English letters

Example:

Input: ["eat","tea","tan","ate","nat","bat"]
Output: [["bat"],["nat","tan"],["ate","eat","tea"]]

K Closest Points to Origin

Asked at Whatnot
technical
heap
sorting

Find k points closest to origin (0,0) using Euclidean distance.

Requirements:

function kClosest(points: number[][], k: number): number[][]

Constraints:
- 1 <= k <= points.length <= 104
- -104 <= xi, yi <= 104

Example:

Input: points = [[1,3],[-2,2]], k = 1
Output: [[-2,2]]
Explanation: (-2,2) is closer to origin than (1,3)

Minimum Window Substring

Asked at Whatnot
technical
sliding window
strings

Find minimum window in s containing all characters of t.

Requirements:

function minWindow(s: string, t: string): string

Constraints:
- 1 <= s.length, t.length <= 105
- Only English letters
- Answer is unique

Example:

Input: s = "ADOBECODEBANC", t = "ABC"
Output: "BANC"

Follow-up: Optimize to O(m + n) time complexity

Number of Islands

Asked at Whatnot
technical
dfs
matrix

Count number of islands in binary grid.

Requirements:

function numIslands(grid: string[][]): number

Constraints:
- 1 <= m, n <= 300
- grid[i][j] is '0' or '1'

Example:

Input: [
  ["1","1","1","1","0"],
  ["1","1","0","1","0"],
  ["1","1","0","0","0"],
  ["0","0","0","0","0"]
]
Output: 1

Product Strategy & Growth Discussion

Asked at Whatnot
behavioral
product
growth
behavioral

Product strategy and growth discussion questions for Whatnot:

  1. Feature Enhancement
What features would be useful to add to Whatnot?
Consider:
- User pain points
- Market differentiation
- Technical feasibility
- Business value
- Implementation complexity
  1. User Experience
Share your experience with Whatnot:
- First impressions
- User journey
- Pain points encountered
- Positive aspects
- Areas for improvement
  1. User Acquisition Strategy
How to get more users?
- Marketing channels
- Growth tactics
- Viral features
- Community building
- Partnership opportunities
  1. User Retention Strategy
How to retain users?
- Engagement features
- Loyalty programs
- Content quality
- Social features
- Personalization

Discussion Points:

  • Data-driven decision making
  • A/B testing approach
  • Success metrics
  • Implementation priorities
  • Resource allocation

Share Your Experience at Whatnot