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
wxPython - GetFirstChild() method in wx.TreeCtrl
Prerequisites: wxPythonIn this article we are going to learn about GetFirstChild() method in wx.TreeCtrl class of wxPython. GetFirstChild() method returns the first child;...
Read More
Python
Python-wxPython
Python wxPython-TreeCtrl
Class 11 RD Sharma Solutions - Chapter 15 Linear Inequations - Exercise 15.2 | Set 2
Question 11. Solve each of the following system of equations in R: 4x - 1 ≤ 0, 3 - 4x 0Solution:Let the first equation be 4x - 1 ≤ 0⇒ 4x ≤ 1⇒ x ≤ 1/4and the second equati...
Read More
Mathematics
School Learning
Class 11
RD Sharma Solutions
RD Sharma Class-11
How to change body class before component is mounted in react?
We can change body class before the component is mounted in ReactJS using the following approach:Prerequisite: React Component LifeCycleThe lifecycle of react components i...
Read More
Technical Scripter
Web Technologies
JavaScript
Picked
Technical Scripter 2020
Class 11 RD Sharma Solutions - Chapter 2 Relations - Exercise 2.3 | Set 2
Question 12. Let A = {x, y, z} and B = {a, b}. Find the total number of relations from A into B.Solution:The total number of relations that can be defined from a set A to ...
Read More
Technical Scripter
Mathematics
School Learning
Class 11
Technical Scripter 2020
RD Sharma Solutions
RD Sharma Class-11
Check if a Binary Tree is univalued or not
Given a binary tree, the task is to check if the binary tree is univalued or not. If found to be true, then print "YES". Otherwise, print "NO".A binary tree is univalued i...
Read More
Tree
Advanced Data Structure
DSA
Class 11 RD Sharma Solutions- Chapter 15 Linear Inequations - Exercise 15.2 | Set 1
Question 1. Solve each of the following system of equations in R: x + 3 0, 2x 14Solution:Let the first equation be x+30⇒ x -3and the second equation be 2x 14⇒ x 7Henc...
Read More
Picked
Mathematics
School Learning
Class 11
RD Sharma Solutions
RD Sharma Class-11
Flip all K-bits of a given number
Given two integers N and K, the task is to represent N in K bits and print the number obtained after flipping all the bits.Examples:Input:N = 1, K = 32Output: 4294967294Ex...
Read More
Bit Magic
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
Find the GCD of an array made up of numeric strings
Given an array arr[] consisting of numeric strings, the task is to calculate Greatest Common Divisor of the given array.Considering strings 'A' and 'B', "B divides A" if a...
Read More
Arrays
Strings
Mathematical
HCF
DSA
Calculate score of a string consisting of balanced parentheses
Given a string str consisting of pairs of balanced parentheses, the task is to calculate the score of the given string based on the following rules:"()" has a score of 1."...
Read More
Strings
Stack
Algorithms
Technical Scripter
cpp-stack
Parentheses-Problems
Technical Scripter 2020
DSA
Maximum removals possible from an array such that sum of its elements is greater than or equal to that of another array
Given two arrays arr[] and brr[] of size N and M respectively, the task is to count the maximum number of elements that can be removed from the array arr[] such that the s...
Read More
Arrays
Greedy
Sorting
array-rearrange
Greedy Algorithms
DSA
Find any two pairs (a, b) and (c, d) such that a d
Given an array of pairs arr[] of size N, the task is to find any two pairs (a, b) and (c, d) such that a c and b d always holds. If any such pair exists, print those pai...
Read More
Arrays
Sorting
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
Count ways to generate an array having distinct elements at M consecutive indices
Given an array arr[] consisting of N integers in the range [0, M] and an integer M, the task is to count the number of ways to replace all array elements whose value is 0 ...
Read More
Arrays
Mathematical
Hash
Technical Scripter
Modular Arithmetic
frequency-counting
Technical Scripter 2020
DSA
Minimize length of a string by removing occurrences of another string from it as a substring
Given a string S and a string T, the task is to find the minimum possible length to which the string S can be reduced to after removing all possible occurrences of string ...
Read More
Strings
Searching
substring
DSA
Generate a matrix having even sum of all diagonals in each 2 x 2 submatrices
Given a positive integer N, the task is to construct a matrix of size N * N such that all the matrix elements are distinct from the range [1, N2] and the sum of elements i...
Read More
Mathematical
Matrix
Technical Scripter
array-rearrange
submatrix
DSA
Sort an array by left shifting digits of array elements
Given an array arr[] consisting of N positive integers, the task is to left-shift the digits of array elements such that the array modifies to a sorted form. If multiple s...
Read More
Arrays
Greedy
Sorting
Mathematical
number-digits
array-rearrange
DSA
1
...
6518
6519
6520
...
11251