Check if a string can become a palindrome by removing at most one character.
Requirements:
Example:
Input: "abca"
Output: true
Explanation: Delete 'c' to get "aba"
Given a list of version statuses [good, good, good, bad, bad, bad], find the first bad version number.
Requirements:
Example:
Input: [good, good, good, bad, bad, bad]
Output: 4 (first bad version)
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"]]
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)
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
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 and growth discussion questions for Whatnot:
What features would be useful to add to Whatnot?
Consider:
- User pain points
- Market differentiation
- Technical feasibility
- Business value
- Implementation complexity
Share your experience with Whatnot:
- First impressions
- User journey
- Pain points encountered
- Positive aspects
- Areas for improvement
How to get more users?
- Marketing channels
- Growth tactics
- Viral features
- Community building
- Partnership opportunities
How to retain users?
- Engagement features
- Loyalty programs
- Content quality
- Social features
- Personalization
Discussion Points: