CapitalOne OA for New Grad [September 2026]

capitalone logo
capitalone
· New Grad
September 21, 2026 · 0 reads

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)

1.

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]
2.

Number of Subarrays That Match a Pattern I

Data Structures & Algorithms

LeetCode problem 3034: Number of Subarrays That Match a Pattern I.

3.

Brightest Position on Street

Data Structures & Algorithms

LeetCode problem 2021: Brightest Position on Street.

📣 Found this helpful? Please share it with friends who are preparing for interviews!

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!