Welcome To Tutorialspoint.dev
Officially launched 18th May 2019

The Celebrity Problem

In a party of N people, only one person is known to everyone. Such a person may be present in the party, if yes, (s)he doesn&#x2019;t know anyone in the party. We can...

Given two numbers represented by two linked lists, write a function that returns sum list. The sum list is linked list representation of addition of two input numbers...

Sudoku Backtracking-7

Given a partially filled 9&#xD7;9 2D array &#x2018;grid[9][9]&#x2019;, the goal is to assign digits (from 1 to 9) to the empty cells so that every row, column, and s...

Sudoku Backtracking-7

Given a partially filled 9&#xD7;9 2D array &#x2018;grid[9][9]&#x2019;, the goal is to assign digits (from 1 to 9) to the empty cells so that every row, column, and s...

Search a Word in a 2D Grid of characters

Given a 2D grid of characters and a word, find all occurrences of given word in grid. A word can be matched in all 8 directions at any point. Word is said be found ...

Rearrange an array in maximum minimum form Set 1

Given a sorted array of positive integers, rearrange the array alternately i.e first element should be maximum value, second minimum value, third second max, fourth s...

Rearrange an array in maximum minimum form Set 2 (O(1) extra space)

Given a sorted array of positive integers, rearrange the array alternately i.e first element should be the maximum value, second minimum value, third-second max, four...

Merge two sorted arrays with O(1) extra space

We are given two sorted array. We need to merge these two arrays such that the initial numbers (after complete sorting) are in the first array and the remaining numbe...

The Celebrity Problem

In a party of N people, only one person is known to everyone. Such a person may be present in the party, if yes, (s)he doesn&#x2019;t know anyone in the party. We can...