Similar Topics
DSA
21.9k+ articles
Experiences
14.4k+ articles
Interview Experiences
12.2k+ articles
Arrays
6.3k+ articles
Strings
3.2k+ articles
Internship
1.6k+ articles
Linked List
1.1k+ articles
Microsoft
750+ articles
Accolite
290+ articles
MakeMyTrip
200+ articles

Amazon

1.7k+ posts
Clone a Linked List with next and Random Pointer
Given a linked list of size N where each node has two links: one pointer points to the next node and the second pointer points to any node i...read more
image
Search an element in a sorted and rotated Array
Function to check if a singly linked list is palindrome
 Given a singly linked list of characters, write a function that returns true if the given list is a palindrome, else false.Examples:Input:...read more
image
Similar Topics
DSA
21.9k+ articles
Experiences
14.4k+ articles
Interview Experiences
12.2k+ articles
Arrays
6.3k+ articles
Strings
3.2k+ articles
Internship
1.6k+ articles
Linked List
1.1k+ articles
Microsoft
750+ articles
Accolite
290+ articles
MakeMyTrip
200+ articles
Lowest Common Ancestor in a Binary Search Tree.
Given two values n1 and n2 in a Binary Search Tree, find the Lowest Common Ancestor (LCA). You may assume that both values exist in the tree...read more
image
Detect loop or cycle in a linked list
Given a linked list, check if the linked list has a loop (cycle) or not. The below diagram shows a linked list with a loop. Recommended: Pl...read more
image
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 reverse the list by changing the links...read more
image
Write an Efficient C Program to Reverse Bits of a Number
Permutations of given String
Given a string S, the task is to write a program to print all permutations of a given string.A permutation also called an "arrangement numbe...read more
image
Program for Nth node from the end of a Linked List
Given a Linked List and a number N, write a function that returns the value at the Nth node from the end of the Linked List. Examples:Input:...read more
image
Find Middle of the Linked List
Given a Singly Linked List, the task is to find the middle of the linked list. If the number of nodes are even, then there would be two midd...read more
image
Convert a Binary Tree into its Mirror Tree (Invert Binary Tree)
Given a binary tree, the task is to convert the binary tree into its Mirror tree. Mirror of a Binary Tree T is another Binary Tree M(T) with...read more
image
Find the Maximum Depth or Height of given Binary Tree
Given a binary tree, the task is to find the height of the tree. The height of the tree is the number of vertices in the tree from the root ...read more
image
Program to Determine if given Two Trees are Identical or not
Find the Missing Number
Largest Sum Contiguous Subarray (Kadane's Algorithm)
Given an array arr[] of size N. The task is to find the sum of the contiguous subarray within a arr[] with the largest sum. Example:Input: ...read more
image