MongoDB software engineer interviews cover algorithms, data structures, system design, and coding problems drawn from real interview rounds.
Thread-Safe Connection Pool Design a thread-safe connection pool that limits the number of concurrent database connections. The pool should reuse...
Input: Integer(s)string and a start and end time defining the window, return a list of timestamps that fall within this range. def fetch_timestamps(timestamps: List[str], start: str, end: str) -> List[str]: - Returns a filtered list of timestamps.1 <= len(timestamps) <= 10^4timestamps[i] is in ISO 8601 format.nums, return the index of the pivot where the rotation occurs.def find_pivot(nums: List[int]) -> int: Returns the pivot index.[4,5,6,7,0,1,2]33.Example 2:[1]01 <= nums.length <= 5000-10^5 <= nums[i] <= 10^5.s, return the length of the longest substring without repeating characters.def length_of_longest_substring(s: str) -> int: Returns the length of the longest substring."abcabcbb"3"abc", with the length being 3.Example 2:"bbbbb"1"b", with the length being 1.Constraints:0 <= s.length <= 50000s consists of English letters, digits, symbols, and spaces.Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free