<aside>
<img src="/icons/home_green.svg" alt="/icons/home_green.svg" width="40px" />
Back to Home
</aside>
ESE 124 Debug QNA - by Hrishikesh Janjal
C Programming Quiz: Bitwise, Math, Comparison Operations and Control Statements
Array Questions
-
- Write a function to find the maximum sum of a subarray using Kadane's algorithm (find a contiguous subarray with the largest sum within a given array).
- 2. Rotate an array to the right by
k steps:
- Find the intersection of two arrays.
- Implement a function to find the missing number in an array of size
n containing numbers from 1 to n.
- Write a function to find the duplicate number in an array.
- Merge two sorted arrays into one sorted array.
- Find the second largest element in an array.
- Implement a function to move all zeros in an array to the end while maintaining the order of other elements.
- Write a function to find the majority element in an array.
- Find the maximum product of two integers in an array.
Data Structure Questions
- Implement a stack using an array.
- Implement a queue using two stacks.
- Write a program to check if a given string has balanced parentheses using a stack.
- Design a data structure that supports
insert, delete, and getRandom operations in constant time.