Interview Round DistributionClick any round below to filter
Topics:
Showing 20 of 97 results for AffirmPage 1 of 5
Program ManagementSystem DesignTechnical
48
Explain your methodology for executing a large scale server update in a live environment, focusing on deployment phases, risk tracking, and reversion triggers.
Imagine a situation where a customer is struggling to communicate with you due to a language barrier. What steps would you take to ensure their issue is resolved?
Aggressive Cows
Maximize the minimum distance between aggressive cows in stalls.
Input: stalls = [0,4,3,7,10,9], cows = 3
Output: 4
Explanation: Placing the cows at positions 0, 4, and 10 yields a maximum possible minimum distance of 4 between any two cows.
Encode and Decode Strings
Encode a list of strings into a single string and decode it back.
Input: strs = ["","hello",""]
Output: ["","hello",""]
Explanation: Prepends chunk lengths and a delimiter (e.g., "0#5#hello0#") to safely encode and perfectly restore empty strings.
Count Anagrammatic Substrings
Count the number of anagrammatic substrings from one string present in another.
Input: s = "abab", p = "ab"
Output: [0, 1, 2]
Explanation: The substrings "ab", "ba", and "ab" starting at indices 0, 1, and 2 respectively are all anagrams of the string "ab".
Validate if a given tree is a valid binary search tree.
Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key, and the right subtree contains only nodes with keys greater than the node's key…