Arrays Interview Questions [2026-2027]
3005+ real questions from verified interview reports across 12 companies.
Sourced from 1Point3Acres, Blind, Glassdoor, Reddit, and more. Translated and cleaned.
Top Companies Asking Arrays Questions
Sample Arrays Questions
Scale AI phone screen [party time]
Got asked this for my Scale AI phone interview - found it on this [site](https://www.hacktherounds.com/problem/669?company=40). It's not the exact same question but pretty similar I would say. I tried
Shopee | Singapore | May 2021 [Offer]
3YoE Date: 27 April, 2021 1. Recruiter Screening : 1. Why do you want to switch from the current company 2. Expected salary and what should be your expectation 2. Onsite 1 : ...
Any optimal approach for this? Question: count all the pairs with indices i<=j whose sum is a power of 2. def pairSummingToPowerOfTwo(a): if len(a)==1 and (a[0] and (not(a[0] & (a[0] -...
Get the sum of min and max diff for all subarrays [2,4,3,5] wrong: sum = (4 - 2) + (4 - 3) + (5 - 3) + (3 - 2) + (5...
Just wanted to share this question here, as I have been benefited a lot from the leetcode comumity in the past few years. However, during the assessment I was unable...
Ques: https://aonecode.com/interview-question/maximum-bounded-array ``` def MaxBoundedArray(n, low, up): \ttotal = (up - low) * 2 + 1 \tif (n > total or up < low or n < 3): \t\treturn None \t# if above check is passed,...
Current experience: Education: 2021 Grad, IIIT College Position: SDE1 at Fintech Location: Bengaluru, IN Interview experience: Applied Position: SDE2 at Flexport Location: Bengaluru, IN Date: April, 2024 Round 1: Technical [1 hour] Question: Consider an infinite grid. There are two...
Took an online test today. Q1 was about given an Array of numbers, for example {5, 1, 2, 1, 4, 5} which represent skills of employees..(Skills[i]) How many teams you can...
LinkedIn Phone Screen
A variation of https://leetcode.com/problems/can-place-flowers/ 2. https://leetcode.com/problems/search-in-rotated-sorted-array/ then https://leetcode.com/problems/search-in-rotated-sorted-array-ii/ as a follow up Did pretty well with optimized solutions. So I am hopeful about onsite. Edit: Moved to onsite. Recruiter let me know...
Given array arr of length n, \uFEFFwe define function f(arr) \uFEFFas- if n=1, f(arr) = \uFEFFarr[0]; else, \uFEFFf(arr) = \uFEFFf(arr[0] ^ \uFEFFarr[1], \uFEFFarr[1] ^ \uFEFFarr[2]...., \uFEFFarr[n-2] ^ \uFEFFarr[n-1]) where ^ \uFEFFis...
https://leetcode.com/problems/remove-digit-from-number-to-maximize-result/ repot: https://leetcode.com/problems/sign-of-the-product-of-an-array/ https://leetcode.com/problems/minimum-time-to-make-rope-colorful/
Maximum area of all possible rectangles that can be formed. The twist here is that you can also reduce any element by atmost 1. find the maximum area of all...
have an array , we have to make it a incresing stair step or decresing stair step by adding to it find the minimum number to be added to all,...
given an array of stock prices, find the month at which the net price change is minimum. if there are several such months, return the earliest month. int solve(vector<int>&v){ int n...
Hello All, I can\'t remember the wording of the exact question, but the idea was to generate all contiguous subarrays of a given array. For all contiguous subarrays, find the maximum...
1. Given an array, return the value larger than its two preceding and following neighbors. 2. Given an array, if there is no number larger than cur, increment count by 1. 3. Given multiple 4x4 matrice
Q1. In a 2D MAtrix of size NxM, you start from (0,0) and travel (N-1, M-1). You can move down left and right and not up. If the matrix node contains...
R1 Given a stock price of 1 day for a day, create a method that would return the maximum profit of the day, given the following conditions. You can only buy and sell once. The difference between t
Question You are given an array of integers "values". Another array "ranges" has each element as a 2-list - [start, end] where "start" and "end" denote a range (start is always < end). Find the num
Hi everyone, I recently interviewed for the Software Engineer 1 (SWE-1) role at **Nike** and got selected. Sharing my experience here — hope it helps others. **📌 Application** - Applied via referral -
📌 Problem: Maximum Profit with 5-Day Selling Constraint You are given two integer arrays cost and sales, where: cost[i] represents the cost of making a sourdough bread on day i sales[i] represents the
This post was last edited by Anonymous on 2025-09-25 21:15. After reading the posts on the forum, it seems my situation is different from everyone else's. I initially applied for positions in NC, and
I don't know if you get an online assessment (OA) just for submitting an application, but this company doesn't have a good reputation. It consists of three parts: Math problems, logic puzzles, and bra
Median of Two Sorted Arrays ## Problem Statement You are given two sorted arrays, `nums1` and `nums2`. The size of the first array is `m` and the size of the second array is `n`. Your task is to fin
See All 3005 Arrays Questions
Full question text, interview context, and company-specific frequency data for subscribers.
Get Access