Interview Round DistributionClick any round below to filter
Topics:
Showing 20 of 99 results for WePayPage 1 of 5
Coding
47
Merge two sorted arrays into one sorted array.
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively. Merge them into a single array sorted in non-decreasing order.
Input: nums1 = [0], m = 0, nums2 = [1], n = 1
Outp…
Reverse Nodes in k-Group
Reverse nodes in k-group in a linked list.
Input: head = [1,2,3,4,5], k = 3
Output: [3,2,1,4,5]
Explanation: The first 3 elements are reversed, while the remaining 2 are left untouched since they don't form a complete group.
Search a 2D matrix where each row and column is sorted.
Write an efficient algorithm that searches for a value target in an m x n integer matrix. Integers in each row are sorted, and the first integer of each row is greater than the last integer of the previous row.
Input: matrix = [[1,4],[2,5]], target = 20
Output: FALSE
Explanation:…