## Program to create Custom Vector Class in C++

The task is to implement a custom vector class similar to the STL vector with following functions: int push_back(data): adds an element(of any data_type) to… Read More »

- Sum of all Palindrome Numbers present in a Linked list
- Program to print all the non-reachable nodes | Using BFS
- Least Common Ancestor of any number of nodes in Binary Tree
- Minimum Spanning Tree using Priority Queue and Array List
- Minimum cost to merge numbers from 1 to N
- Encryption and Decryption of String according to given technique
- Program to delete all even nodes from a Singly Linked List
- Program to create Custom Vector Class in C++
- Sideways traversal of a Complete Binary Tree
- Binary Search Tree | Set 3 (Iterative Delete)
- Find all Factors of Large Perfect Square Natural Number in O(sqrt(sqrt(N))
- Maximum of XOR of first and second maximum of all subarrays
- C program to implement Adjacency Matrix of a given Graph
- Sum of all perfect numbers present in an Linked list
- Count of strings possible by replacing two consecutive same character with new character
- Print the nodes having exactly one child in a Binary tree
- Check if alternate path exists from U to V with smaller individual weight in a given Graph
- Count of triplets in an Array (i, j, k) such that i < j < k and a[k] < a[i] < a[j]
- Comparison between Lists and Array in Python
- Shortest path in a complement graph

The task is to implement a custom vector class similar to the STL vector with following functions: int push_back(data): adds an element(of any data_type) to… Read More »

Given a string str. The task is to count the number of all different strings possible if two consecutive same characters of the string can… Read More »

Given a Complete Binary Tree, the task is to print the elements in the following pattern. Let’s consider the tree to be: The tree is… Read More »

Given a string S, the task is to encrypt the string and decrypt the string again to the original form. Encryption Technique: If L is… Read More »

Given a directed weighted graph with N vertices and M edges and an edge (U, V). The task is to find whether there is an… Read More »

Given a binary tree (not a binary search tree) and any number of Key Nodes, the task is to find the least common ancestor of… Read More »

Given a bi-directed weighted (positive) graph without self-loops, the task is to generate the minimum spanning tree of the graph. Examples: Input: N = 9,… Read More »

Given a linked list and an integer M, the task is to append the last M nodes of the linked list to the front. Examples:… Read More »

Programming… Competitive Programming… It teaches you how to think?. If you are a programmer you might have understood the deep meaning of these lines quoted… Read More »

Given a Binary Tree, print Bottom-Right view of it. The Bottom Right view of a Binary Tree is a set of nodes visible when the… Read More »

Given a string str containing only lowercase characters. The task is to print the characters along with their frequencies in the order of their occurrence… Read More »

Given two integers A and B. The task is to find the nearest greater value to B by interchanging the digits of A. If no… Read More »

Prerequisite: https://www.geeksforgeeks.org/little-and-big-Endian-mystery/ Little Endian and Big Endian are ways or storing data in machines. Some machines might use Little Endian byte ordering while others might… Read More »

A data structure is a particular way of organizing data in a computer so that it can be used effectively. The idea is to reduce… Read More »

Given a permutation P of first N natural numbers, the task is to count the index pairs (i, j) such that P[i] + P[j] =… Read More »