Coding Test Questions
Coding Test Questions
● Given a string, find the length of the longest substring without repeating
characters.
4. Merge Intervals
● Given a string containing just the characters '(', ')', '{', '}', '[', ']', determine if the
input string is valid.
6. Rotate Array
● Given an array, rotate the array to the right by k steps, where k is non-negative.
● You are climbing a staircase. It takes n steps to reach the top. Each time you can
either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
● Given an array of integers nums and an integer target, return the indices of the
two numbers such that they add up to the target.
● Given an array nums of n integers, return an array output such that output[i] is
equal to the product of all the elements of nums except nums[i].
● Implement a first in first out (FIFO) queue using only two stacks. The implemented
queue should support all the functions of a normal queue (push, pop, peek, and
empty).