One DSA question:
First Question was on Sliding Window: ThoughtSpot serves many customer tenants from the same service. You want to stop any single tenant from flooding it. Design a class RateLimiter that allows each tenant at most N requests in any W-second sliding window. Implement:
Apart from this conceptual questions on Data Structures like Map, Sets their properties were asked
2 questions with multiple variants and discussion on each:
Output: true Example 2: Input: n = 2 prerequisites = [[1,0],[0,1]]
Read this SDE interview experience at THOUGHTSPOT.
Last updated Oct 6, 2026
Output: false Concept: Directed graph + cycle detection / Topological Sort. ⸻ 2. Ribbon Cutting — Binary Search on Answer Problem: You are given a ribbon of length n and an integer k. You must make exactly k cuts on the ribbon, dividing it into k + 1 pieces. Return the minimum possible length of the longest piece after making the cuts. Example: Input: n = 10 k = 3
Output: 3 One possible division is: 3 | 3 | 2 | 2 The longest piece has length 3. Concept: Binary Search on Answer. ⸻ 3. Longest Ribbon Piece After Each Cut — Ordered Set Problem: You are given a ribbon of length n and an array cuts, where cuts[i] represents the position at which the i-th cut is made. After each cut, return the length of the longest remaining piece of ribbon. Example: Input: n = 10 cuts = [2,7,5]
Output: [8,5,3] Explanation: After cutting at 2: [2, 8] Longest = 8 After cutting at 7: [2, 5, 3] Longest = 5 After cutting at 5: [2, 3, 2, 3] Longest = 3 Constraints:
CV projects discussion
Tips: Study conceptual questions, not just memorising code, standard algorithms, Big-O time complexity of them, properties of data structures