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
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
KLA Interview Experience for Software Engineer Intern (2020)
First Round(Coding Round): This round was on hackerrank in our LAB. There were two coding questions, both from the Graph data structure and 90 minutes were given.The first...
Read More
Interview Experiences
KLA Tencor
Internship
Experiences
Print siblings of a given Node in N-ary Tree
Given an N-ary tree and an element X, the task is to print the siblings of the node with value X.Two nodes are considered to be siblings if they are present at the same le...
Read More
Tree
Queue
Searching
Tree Traversals
n-ary-tree
tree-level-order
DSA
Count unique paths with given sum in an N-ary Tree
Given an integer X and integer N, the task is to find the number of unique paths starting from the root in N-ary tree such that the sum of all these paths is equal to X. T...
Read More
Tree
combinatorics
Dynamic Programming
Mathematical
Combinatorial
Recursion
DSA
Length of the longest substring with every character appearing even number of times
Content has been removed on Author’s request....
Read More
Strings
Bit Magic
Mathematical
Hash
frequency-counting
substring
DSA
SQLite Data Types
SQLite Data Type is a quality that defines the type of data of any object. SQLite is different from other database systems, it uses dynamic type system. In another way a v...
Read More
SQL
DBMS-SQL
Length of the longest increasing subsequence which does not contain a given sequence as Subarray
Given two arrays arr[] and arr1[] of lengths N and M respectively, the task is to find the longest increasing subsequence of array arr[] such that it does not contain arra...
Read More
Arrays
Dynamic Programming
Mathematical
subsequence
LIS
subarray
Memoization
DSA
Check whether it is possible to permute string such that it does not contain a palindrome of length 2
Given a strings S length N consisting of only 'a', 'b' and 'c'. The task is to check if it is possible to permute the characters of S such that it will not contain a palin...
Read More
C++ Programs
cpp-unordered_map
frequency-counting
Minimum sum possible by assigning every increasing/decreasing consecutive pair with values in that order
Given an array arr[] of size N, the task is to find the minimum sum of positive integers that can be assigned to each array element arr[i], such that if arr[i] arr[i+1] o...
Read More
Arrays
Greedy
Mathematical
DSA
Minimum removal of characters required such that permutation of given string is a palindrome
Given string str consisting of lowercase letters, the task is to find the minimum number of characters to be deleted from the given string such that any permutation of the...
Read More
Strings
Hash
palindrome
permutation
Reverse
frequency-counting
DSA
Sum of all possible strings obtained by removal of non-empty substrings
Given numerical string str consisting of N integers, the task is to find the sum of all possible resulting strings after removing non-empty substrings.Examples:Input: str ...
Read More
Strings
Pattern Searching
Mathematical
prefix-sum
substring
triangular-number
DSA
Introduction to Faults in Software Engineering
In software engineering, a fault is an error or defect in a program that causes it to produce incorrect or unexpected results. Faults can occur at various stages of the so...
Read More
Software Engineering
Rearrange two given arrays to maximize sum of same indexed elements
Given two arrays A[] and B[] of size N, the task is to find the maximum possible sum of abs(A[i] – B[i]) by rearranging the array elements.Examples:Input: A[] = {1, 2, 3, ...
Read More
Arrays
Greedy
Sorting
Mathematical
array-rearrange
DSA
Area of the largest rectangle possible from given coordinates
Given two arrays arr1[] and arr2[] of N denoting N coordinates of the form (arr1[i], 0) and M positive integers denotingM coordinates of the form (arr2[j], 1) where 1 ? i ...
Read More
Arrays
Algorithms
Sorting
Geometric
DSA
C/C++ Puzzles
Rearrange array such that sum of same indexed elements is atmost K
Given two arrays A[] and B[] consisting of N integers each and an integer K, the task is to rearrange the array B[] such that sum of Ai + Bi is atmost K. If no such arrang...
Read More
Arrays
Searching
Sorting
Mathematical
Competitive Programming
array-rearrange
DSA
PERIOD_ADD() function in MySQL
PERIOD_ADD() function in MySQL helps to add a specific number of months to a given period. The PERIOD_ADD() function will return the resultant value in 'YYYYMM' format.Syn...
Read More
SQL
DBMS-SQL
mysql
Technical Scripter 2020
1
...
6925
6926
6927
...
11256