Interview Round DistributionClick any round below to filter
Topics:
Showing 20 of 99 results for DiDi ChuxingPage 1 of 5
Coding
46
Break a string into space-separated words using a dictionary.
Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dictionary words.
Input: s = "catsandog", wordDict = ["cats", "dog", "sand", "and", "cat"]
Output: FALSE
Explanation: There is no valid se…
Could you provide an example of a situation where you used data analysis to present a compelling case for an upsell or expansion opportunity to a customer?
Calculate the minimum number of parentheses to add to make a string valid.
A parentheses string is valid if and only if it is empty, or properly balanced. Return the minimum number of parentheses you must add to make the resulting string valid.
Input: s = "((("
Output: 3
Explanation: There are three open parentheses without any matchi…
Dot Product of Two Sparse Vectors
Calculate the dot product of two sparse vectors.
Input: nums1 = [0,1,0,0,2], nums2 = [0,0,0,0,5]
Output: 10
Explanation: Multiplies the aligned non-zero values (2 * 5) and ignores all the zeros, yielding a dot product of 10.