## Paths to travel each nodes using each edge (Seven Bridges of Königsberg)

There are n nodes and m bridges in between these nodes. Print the possible path through each node using each edges (if possible), traveling through… Read More »

There are n nodes and m bridges in between these nodes. Print the possible path through each node using each edges (if possible), traveling through… Read More »

A pair of strings when concatenated is said to be a ‘Pandigital Concatenation’ if their concatenation consists of all digits from (0 – 9) in… Read More »

Find the first non-repeating element in a given array of integers. Examples: Input : -1 2 -1 3 2 Output : 3 Explanation : The… Read More »

Given a string str, find count of all palindromic permutations of it. Examples: Input : str = “gfgf” Output : 2 There are two palindromic… Read More »

Given a doubly linked list, rotate the linked list counter-clockwise by N nodes. Here N is a given positive integer and is smaller than the… Read More »

Given a stream of integers, lookup the rank of a given integer x. Rank of an integer in stream is “Total number of elements less… Read More »

Given an array A positive integers, sort the array in ascending order such that element at index K in unsorted array stays unmoved and all… Read More »

We are given an array of 0s and 1s in random order. Segregate 0s on left side and 1s on right side of the array.… Read More »

Data structure is a way of storing and organising data efficiently such that the required operations on them can be performed be efficient with respect… Read More »

Basics – Recursion Recursive Functions Tail Recursion Strings – Given a string, print all possible palindromic partitions Check if a number is Palindrome Print all… Read More »

You are given a string s(only lowercase alphabets) with length n. Print the position of every character of the String it must acquire so that… Read More »

Given a set of non-overlapping intervals and a new interval, insert the interval at correct position. If the insertion results in overlapping intervals, then merge… Read More »

Given an array of size N and a Linked List where elements will be from the array but can also be duplicated, sort the linked… Read More »

Given an unsorted array of integers and an element x, find if x is present in array using Front and Back search. Examples : Input… Read More »

Prerequisite : Priority Queue, Comparator Priority Queue is like a regular queue, but each element has a “priority” associated with it. In a priority queue,… Read More »