Coding Interview Questions to Help You 10x Your Performance

10+

Reverse a Linked List

Given a pointer to the head node of a linked list, the task is to reverse the linked list. We need to switch the list by changing the links between nodes.

How to solve this Coding problem?

1

Hamiltonian Path Problem

How to solve this Coding problem?

Given an undirected graph. The task is to print all the Hamiltonian cycles present in the graph.

2

Balanced Binary tree

Given a binary tree, determine if is height-balanced.

How to solve this Coding problem?

3

Search in Rotated Sorted Array

Given an array of distinct elements, which is formed from some places rotation of a sorted array, find if a given element is present in the array or not.

How to solve this Coding problem?

4

Post Correspondence Problem

Given 2 lists of words, find if there exists a sequence such that the concatenation of the words in this order, gives the same word for both lists.

How to solve this Coding problem?

5

Longest Common Substring

Given two strings, the task is to find the longest common substring present in the given strings in the same order.

How to solve this Coding problem?

6

Given an array, a[], consisting of distinct elements, and a target sum, find all the unique combinations in the array where the sum is equal to the target sum.

Combination Sum

How to solve this Coding problem?

7

Given a string S of lowercase English characters ‘a’ – ‘z’. The task is to sort the string.

Sort String (C++, Java and Python)

How to solve this Coding problem?

8

Reverse Level Order Traversal

Given a binary tree, return the reverse level order traversal of its nodes’ values. (i.e, from left to right and from the last level to starting level).

How to solve this Coding problem?

9

Remove Duplicates from Array

Given an array of integers, the task is to remove the duplicates from the array.

How to solve this Coding problem?

10

Check out Scaler's Career Plan, a comprehensive program designed to help you navigate your career path. Click the link to learn more!

Ready to  show off your coding prowess & impress your interviewers?

Want to Enhance your Coding Skills?

Sign up for Scaler's free masterclasses and events to learn about the latest trends in the IT industry and become a pro.  Don't hesitate any longer, register today!