Walmart Labs Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.
Merge two sorted arrays in-place
You are given two integer arrays sorted in non-decreasing order, and two integers m and n: - nums1 has length m + n. The first m elements of nums1 con...
Find first non-repeating character
Given a string s, return the first character that appears exactly once in the string (i.e., the leftmost non-repeating character). - If no such charac...
Compute maximum simultaneous bus routes
You are given N bus routes, each defined by a start time (inclusive) and an end time (exclusive). Compute the maximum number of routes running simulta...
Find Index Pairs of Matching Elements in Arrays
Scenario Marketing analytics team needs to find common elements between two sorted arrays of user IDs. Question Given two sorted integer arrays withou...
Find earliest feasible hike day and minimal ascent
给定 base[i](每个点的基础海拔)和 snow[day][i](第 day 天落在第 i 个点的降雪量,单位 cm)。每天每个点的积雪按以下规则变化:若某点连续 2 天降雪量均为 0,则从第 3 天起该点的积雪开始以每天 1 cm 的速度融化,直到为 0;否则当日的降雪会累加到该点的积雪中。实...