Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Complete DevOps Roadmap - Beginner to Advanced
DevOps is considered a set of practices that combines the abilities of Software Development i.e Dev and IT Operations i.e Ops together, which results in delivering top-not...
Read More
Count of index triplets (i, j, k) in given Array such that i<j<k and a[j]<a[k]<a[i]
Given an array arr[], the task is to count the number of triplets such that i j k and a[ j ] a[ k ] a[ i ].Examples:Input: arr[] = {1, 2, 3, 4, 5}Output: -1Explanation: T...
Read More
Arrays
Stack
DSA
Check if given Generic N-ary Tree is Symmetric horizontally
Given an N-ary tree root, the task is to check if it is symmetric horizontally (Mirror image of itself).Example:Input: root = 7 / / \ \ ...
Read More
Tree
Preorder Traversal
Dynamic Programming
Recursion
n-ary-tree
DSA
Length of Longest increasing sequence of nodes in a given Graph
Given a graph root, the task is to find the length of the longest increasing sequence in the graph.Example:Input: root = 7----17 / \ 1----2----5 4 /...
Read More
Misc
Graph
DFS
Recursion
DSA
Finding Kth largest number in given array of large numbers
Given an array arr[] of strings representing large numbers and an integer K, the task is to find Kth largest integer in given array.Examples:Input: arr[] = { "10", "7", "3...
Read More
Arrays
Strings
Sorting
large-numbers
DSA
Count the number of nodes in a Graph whose sum of neighbors is at most K
Given a graph root, and a value K, the task is to find the number of nodes in the graph whose sum of neighbors is less than K.Example:Input: root = 8 K = 14 / \ ...
Read More
Misc
Graph
DFS
Recursion
HashSet
DSA
Print the Array formed by reversing the given Array after each index
Given an array arr[], the task is to print the array formed by traversing given array from first to the last index by flipping the whole array after printing every element...
Read More
Arrays
Dynamic Programming
two-pointer-algorithm
DSA
C/C++ Puzzles
Find Prime numbers in a 2D Array (Matrix)
Given a 2d array mat[][], the task is to find and print the prime numbers along with their position (1-based indexing) in this 2d array.Examples:Input: mat[][] = {{1, 2}, ...
Read More
Arrays
Searching
Mathematical
Matrix
sieve
Prime Number
DSA
Java Program For Deleting A Node In A Linked List
We have discussed Linked List Introduction and Linked List Insertion in previous posts on a singly linked list.Let us formulate the problem statement to understand the del...
Read More
Linked List
Linked Lists
Java
java-basics
Java Programs
DSA
C Program For Deleting A Node In A Linked List
We have discussed Linked List Introduction and Linked List Insertion in previous posts on a singly linked list.Let us formulate the problem statement to understand the del...
Read More
Linked List
Linked Lists
C-programming
C Language
C Programs
DSA
Python Program for Deleting a Node in a Linked List
We have discussed Linked List Introduction and Linked List Insertion in previous posts on a singly linked list.Let us formulate the problem statement to understand the del...
Read More
Linked List
Python
Python Programs
Python-Data-Structures
DSA
C++ Program for Deleting a Node in a Linked List
We have discussed Linked List Introduction and Linked List Insertion in previous posts on a singly linked list.Let us formulate the problem statement to understand the del...
Read More
Linked List
C++
C++ Programs
DSA
Javascript Program For Selecting A Random Node From A Singly Linked List
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
Read More
Linked List
Randomized
DSA
Python Program For Selecting A Random Node From A Singly Linked List
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
Read More
Linked List
Randomized
Python Programs
DSA
Java Program For Selecting A Random Node From A Singly Linked List
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
Read More
Linked List
Randomized
Java Programs
DSA
C Program For Selecting A Random Node From A Singly Linked List
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
Read More
Linked List
Randomized
C Programs
DSA
1
...
4704
4705
4706
...
10992