CapitalOne OA for New Grad [September 2026]
Summary
I completed the CapitalOne online assessment for a New Grad position in September 2026, which included four coding questions.
Full Experience
Question 1. You are given an array. Sort by pairs, but if the array length is odd, dont touch the final number. Example: Input [5,4,2,3,7] Output [4,5,2,3,7]
Question 2. LC 3034. Number of Subarrays That Match a Pattern I
Question 3. I do not remember
Question 4. LC 2021, Brightest Position on Street
Interview Questions (3)
Sort Array by Pairs with Odd Length Exception
Given an array, sort the elements in pairs (swap each adjacent pair). If the array length is odd, leave the last element unchanged.
Example:
Input: [5,4,2,3,7] Output: [4,5,2,3,7]
Number of Subarrays That Match a Pattern I
LeetCode problem 3034: Number of Subarrays That Match a Pattern I.
Brightest Position on Street
LeetCode problem 2021: Brightest Position on Street.