Calculate the minimum number of parentheses to add to make a string valid.
A parentheses string is valid if and only if it is empty, or properly balanced. Return the minimum number of parentheses you must add to make the resulting string valid.
Input: s = "((("
Output: 3
Explanation: There are three open parentheses without any matchi…
**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
Merge K Sorted Linked Lists
Merge K sorted linked lists.
Input: lists = [[2,2,3],[1,5]]
Output: [1,2,2,3,5]
Explanation: Extracts the smallest current node iteratively using a priority queue to build a single merged and sorted linked list.
Palindromes in Base-10 and Base-k
Return the first n integers that are palindromes in both base-10 and base-k.
Input: n = 2, k = 4
Output: [1, 5]
Explanation: 1 is '1' in base 4, and 5 is '11' in base 4. Both are perfect palindromes in decimal and base 4 simultaneously.
Capital One TDP Associate February 2027 Power Day Overview
I keep receiving DM requests about the power day, so I will compile what I know and have heard from others. I will be leaving some specific details out in order to both not violate NDA and to protect my identity.
I'll explain in order of what I've been asked about most.
First, the agentic portion. In my time prepping, I unfortunately di…