CapitalOne OA for New Grad [September 2026]
- Posted
- 21 Sept 2026
Summary
I completed the CapitalOne online assessment for a New Grad position in September 2026, which included four coding questions.
How it went
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
Questions asked (3)
- 01
Sort Array by Pairs with Odd Length Exception
Data Structures & Algorithms
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]
- 02
Number of Subarrays That Match a Pattern I
Data Structures & Algorithms
LeetCode problem 3034: Number of Subarrays That Match a Pattern I.
- 03
Brightest Position on Street
Data Structures & Algorithms
LeetCode problem 2021: Brightest Position on Street.