Capital One Software Engineer Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.
Solve string merge and grid path tasks
Question Given two equal-length strings s1 and s2, create a new string by iterating i = 0 … n-1, comparing s1[i] with s2[n-1-i]: append s1[i]; if the ...
Implement deposit, withdraw, and transfer in a class
Problem Implement a class AccountService that supports basic money operations on accounts. Operations - deposit(accountId, amount) - withdraw(accountI...
Apply commands to transform a matrix
You are given an integer matrix A of size n × m and a list of string commands to apply in order. Implement the commands and return the final matrix. C...
Count ordered pairs that concatenate to target
Given a list of integers numbers and an integer target, count the number of ordered pairs (i, j) with i != j such that concatenating numbers[i] follow...
Solve powers, phases, grid pops, and swaps
Solve the following four problems: 1) Count powers of k in an array: Given an array of positive integers nums and an integer k >= 1, return how many e...
Implement 2D transforms and find max-lit point
Part A — 2D array transforms: Given an m×n integer matrix, implement the following in-place operations with clear function boundaries and complexity: ...
Solve four algorithmic coding tasks
You will solve four independent coding tasks: 1) Count equal-value pairs in an array: Given an integer array nums of length n, return the number of in...