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
Construct a linked list from 2D matrix (Iterative Approach)
Given a matrix, the task is to construct a linked list matrix in which each node is connected to its right and down node.Example:Input: [1 2 3 4 5 6 7 8 9]...
Read More
Linked List
DSA
Architectural Design - Software Engineering
The software needs an architectural design to represent the design of the software. IEEE defines architectural design as "the process of defining a collection of hardware ...
Read More
Software Engineering
System Design
Maximum length of rod for Q-th person
Given lengths of n rods in an array a[]. If any person picks any rod, half of the longest rod (or (max + 1) / 2 ) is assigned and remaining part (max - 1) / 2 is put back....
Read More
Arrays
Stack
Queue
cpp-vector
cpp-queue
cpp-stack
DSA
Minimum steps to reach target by a Knight | Set 2
Given a square chessboard of N x N size, the position of Knight and position of a target is given, the task is to find out the minimum steps a Knight will take to reach th...
Read More
Algorithms
Dynamic Programming
Competitive Programming
Algorithms-Dynamic Programming
chessboard-problems
DSA
Print all prime numbers less than or equal to N
Given a number N, the task is to print all prime numbers less than or equal to N.Examples:Input: 7Output: 2, 3, 5, 7Input: 13Output: 2, 3, 5, 7, 11, 13 Naive Approach: Ite...
Read More
Mathematical
DSA
Find duplicate in an array in O(n) and by using O(1) extra space
Given an array arr[] containing n integers where each integer is between 1 and (n-1) (inclusive). There is only one duplicate element, find the duplicate element in O(n) ...
Read More
Algorithms
Searching
Data Structures
Arrays
DSA
Smallest number in BST which is greater than or equal to N ( Iterative Approach)
Given a Binary Search Tree and a number N, the task is to find the smallest number in the binary search tree that is greater than or equal to N.Examples:Input: N = 5 ...
Read More
Misc
Tree
Advanced Data Structure
DSA
Longest Common Prefix Matching | Set-6
Given a set of strings, find the longest common prefix.Examples:Input: str[] = {geeksforgeeks, geeks, geek, geezer}Output: geeInput: str[] = {apple, ape, april}Output: apP...
Read More
Strings
Articles
C++
DSA
Introduction to Backtracking - Data Structure and Algorithm Tutorials
Backtracking is like trying different paths, and when you hit a dead end, you backtrack to the last choice and try a different route. In this article, we'll explore the ba...
Read More
Backtracking
Branch and Bound
Recursion
Algorithms-Backtracking
Picked
DSA
Tutorials
DSA Tutorials
TCS Interview Experience | Set 41 (On-Campus)
There were following sections in the test -C MCQ SectionAptitudeCoding with command Line Programmingemail WritingThe written round preparation questions were mostly repeat...
Read More
Misc
Prime numbers in a given range using STL | Set 2
Generate all prime numbers between two given numbers. The task is to print prime numbers in that range. The Sieve of Eratosthenes is one of the most efficient ways to find...
Read More
Algorithms
Mathematical
DSA
Hypothesis (language regularity) and algorithm (L-graph to NFA) in TOC
Prerequisite - Finite automata, L-graphs and what they represent L-graphs can generate context sensitive languages, but it’s much harder to program a context sensitive lan...
Read More
Misc
Algorithms
Theory of Computation
DSA
L-graphs and what they represent in TOC
Prerequisite - Finite automata introduction All programming languages can be represented as a finite automata. C, Paskal, Haskell, C++, all of them have a specific structu...
Read More
Misc
Theory of Computation
RISC and CISC in Computer Organization
RISC is the way to make hardware simpler whereas CISC is the single instruction that handles multiple work. In this article, we are going to discuss RISC and CISC in detai...
Read More
GATE CS
Computer Organization & Architecture
Adaptive Security Appliance (ASA) Features
A firewall is a network security system that takes action on the ingoing or outgoing packets based on the defined rules based on IP address, and port numbers. Cisco calls ...
Read More
Computer Networks
1
...
10990
10991
10992
...
11451