Welcome To Tutorialspoint.dev
Officially launched 18th May 2019

# Median in a stream of integers (running integers)

Given that integers are read from a data stream. Find median of elements read so for in efficient way. For simplicity assume there are no duplicates. For example, let...

# Given a string, find its first non-repeating character

Given a string, find the first non-repeating character in it. For example, if the input string is &#x201C;GeeksforGeeks&#x201D;, then output should be &#x2018;f&#x2...

# Level order traversal in spiral form

Write a function to print spiral order traversal of a tree. For below tree, function should print 1, 2, 3, 4, 5, 6, 7. Recommended: Please solve it on &#x201C;PRAC...

# 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...

# Find the Missing Number

You are given a list of n-1 integers and these integers are in the range of 1 to n. There are no duplicates in list. One of the integers is missing in the list. Wri...

# Maximum difference between two elements such that larger element appears after the smaller number

Given an array arr[] of integers, find out the maximum difference between any two elements such that larger element appears after the smaller number. Examples : In...

# Sort an array of 0s, 1s and 2s

Given an array A[] consisting 0s, 1s and 2s, write a function that sorts A[]. The functions should put all 0s first, then all 1s and all 2s in last. Examples: Input :...

# Search in a row wise and column wise sorted matrix

Given an n x n matrix and a number x, find the position of x in the matrix if it is present in it. Otherwise, print &#x201C;Not Found&#x201D;. In the given matrix, ev...

# 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...

# Find the element that appears once

Given an array where every element occurs three times, except one element which occurs only once. Find the element that occurs once. Expected time complexity is O(...