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
Modify array by replacing elements with the nearest power of its previous or next element
Given a circular array arr[] consisting of N positive integers, the task is to modify the array by replacing each array element with the nearest power of its previous or n...
Read More
Arrays
Mathematical
array-rearrange
circular-array
maths-power
DSA
Displacement from origin after N moves of given distances in specified directions
Given an array A[] consisting of characters 'U', 'D', 'L', and 'R' representing directions up, down, left, and right, and another array B[] consisting of N positive intege...
Read More
Arrays
Mathematical
Geometric
Geometric-Lines
DSA
Count pairs with odd Bitwise XOR that can be removed and replaced by their Bitwise OR
Given an array arr[] consisting of N integers, the task is to count the number of pairs whose Bitwise XOR is odd, that can be removed and replaced by their Bitwise OR valu...
Read More
Arrays
Bit Magic
Mathematical
Bitwise-XOR
array-rearrange
Bitwise-OR
DSA
Check if any pair of consecutive 1s can be separated by at most M 0s by circular rotation of a Binary String
Given a binary string S of length N and a positive integer M, the task is to check if it is possible to rotate the string circularly any number of times such that any pair...
Read More
Strings
Greedy
binary-string
DSA
Class 10 NCERT Solutions- Chapter 11 Constructions - Exercise 11.1
In each of the following, give the justification of the construction also:Question 1. Draw a line segment of length 7.6 cm and divide it in the ratio 5 : 8. Measure the tw...
Read More
Picked
Mathematics
School Learning
NCERT
Class 10
NCERT Solutions Class-10
Find interior angles for each side of a given Cyclic Quadrilateral
Given four positive integers A, B, C, and D representing the sides of a Cyclic Quadrilateral, the task is to find all the interior angles of the cyclic quadrilateral.A cyc...
Read More
Mathematical
Geometric
Geometric-Lines
Circles
Coordinate Geometry
DSA
Generate a random Binary String of length N
Given a positive integer N, the task is to generate a random binary string of length N.Examples:Input: N = 7Output: 1000001Input: N = 5Output: 01001Approach: The given pro...
Read More
Strings
Mathematical
Randomized
Competitive Programming
binary-string
C++
C++ Programs
cpp-random
DSA
Creating a Dynamic Array in Java
Arrays are linear data structures which means that similar types of elements will be inserted as known in a continuous manner. Now as we know there is an issue with arrays...
Read More
Java
Data Structures
Java-Arrays
Java Programs
DSA
Amazon Interview Experience for Programmer Analyst
I recently gave an interview for a programmer analyst role at Amazon. Round 1(Online Test): Two questions I cannot recollect exactly what they were, but they were surely i...
Read More
Amazon
Interview Experiences
Experiences
Python - Character repetition string combinations
Given a string list and list of numbers, the task is to write a Python program to generate all possible strings by repeating each character of each string by each number i...
Read More
Python
Python Programs
Python list-programs
Python string-programs
How to generate a random phone number using Python?
In this article, we will learn how to generate a random phone number using Python. In general, Indian phone numbers are of 10 digits and start with 9, 8, 7, or 6.Approach:...
Read More
Python
Python-random
Python - Count the frequency of matrix row length
Given a Matrix, the task is to write a Python program to get the count frequency of its rows lengths.Input : test_list = [[6, 3, 1], [8, 9], [2], [10, 12, 7], [4, 11]]Outp...
Read More
Python
Python Programs
Python list-programs
Python matrix-program
How to remove text inside brackets in Python?
In this article, we will learn how to remove content inside brackets without removing brackets in python.Examples:Input: (hai)geeksOutput: ()geeksInput: (geeks)for(geeks)O...
Read More
Python
python-regex
Picked
How to store XML data into a MySQL database using Python?
In this article, we are going to store XML data into the MySQL database using python through XAMPP server. So we are taking student XML data and storing the values into th...
Read More
Python
Python-mySQL
Python - Timedelta object with negative values
In Python, there is the Datetime library which is the in-built library under which timedelta() function is present. Using this function we can find out the future date and...
Read More
Python
Picked
Python-datetime
1
...
6079
6080
6081
...
11204