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
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
Maximize count of elements that can be selected having minimum difference between their sum and K
Given an array arr[] and an integer value K, the task is to count the maximum number of array elements that can be selected such that:Sum of the selected array elements is...
Read More
Arrays
Sorting
Mathematical
Technical Scripter
DSA
Count ways to represent N as sum of powers of 2
Given an integer N, the task is to count the number of ways to represent N as the sum of powers of 2.Examples:Input: N = 4Output: 4Explanation: Allpossible ways to obtains...
Read More
Mathematical
Combinatorial
Recursion
Numbers
Technical Scripter 2020
DSA
Represent N as the sum of exactly K powers of two | Set 3
Given two integers N and K, the task is to find whether it is possible to represent N as the sum of exactly K powers of 2. If possible, then print K positive integers such...
Read More
Bit Magic
setBitCount
Greedy
Mathematical
Technical Scripter
cpp-vector
Bit Algorithms
maths-power
Technical Scripter 2020
DSA
Count ways to obtain triplets with positive product consisting of at most one negative element
Given an array arr[] of size N (1 ? N ? 105), the task is to find the number of ways to select triplet i, j, and k such that i j k and the product arr[i] * arr[j] * arr[...
Read More
Arrays
Mathematical
Combinatorial
Technical Scripter
frequency-counting
Maths
Technical Scripter 2020
DSA
Minimize swaps between two arrays such that sum of the first array exceeds sum of the second array
Given two arrays arr1[] and arr2[] of size N and M respectively, the task is to count the minimum number of swaps required between the two arrays in order to make the sum ...
Read More
Arrays
Greedy
Searching
Mathematical
array-rearrange
DSA
Sort an array of strings in ascending order with each string sorted in descending order
Given a array of strings S[] of size N (1 ? N ? 105), sort characters of each string in descending order and then print the array of strings in ascending order.Examples:In...
Read More
Arrays
Strings
Sorting
array-rearrange
DSA
Generate a sequence determined by the characters of a given string
Given a binary string S of length N (1 ? N ? 105), the task is to print a permutation A consisting of integers 0 to N satisfying the following conditions:If S[i] = 1, then...
Read More
Strings
Greedy
Mathematical
Maths
strings
DSA
How to make a Python auto clicker?
In this article, we will see how to create an auto-clicker using Python. The code will take input from the keyboard when the user clicks on the start key and terminates au...
Read More
Python
python-utility
Picked
Python-projects
Class 11 RD Sharma Solutions- Chapter 16 Permutations - Exercise 16.3 | Set 1
Question 1. Evaluate each of the following:(i) 8P3(ii) 10P4(iii) 6P6(iv) P (6, 4)Solution:(i) 8P3As we know that, 8P3 can be written as P (8, 3)After applying the formula,...
Read More
Picked
Mathematics
School Learning
Class 11
RD Sharma Solutions
RD Sharma Class-11
Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space | Set 2
Given an array arr[] consisting of 2* N elements in the form of { a1, a2, …, aN, b1, b2, ..., bN }, the task is to shuffle the array to {a1, b1, a2, b2, ..., an, b1} witho...
Read More
Arrays
Divide and Conquer
Sorting
array-rearrange
subarray
Recursion
array-merge
DSA
Infosys Interview Experience for Systems Engineer | On-Campus 2020
Infosys came to our campus for a system engineer profile.First Round: It was an online general aptitude test which was 2 hrs. It consisted of some questions of quant, LR, ...
Read More
Interview Experiences
Infosys
Placements
On-Campus
Infosys-interview-experience
Experiences
XOR Linked List - Pairwise swap elements of a given linked list
Given a XOR linked list, the task is to pairwise swap the elements of the given XOR linked list .Examples:Input: 4 - 7 - 9 - 7Output: 7 - 4 - 7 - 9Explanation:First pair o...
Read More
Linked List
Linked Lists
Bit Magic
Advanced Data Structure
Bitwise-XOR
DSA
XOR linked list- Remove first node of the linked list
Given an XOR linked list, the task is to remove the first node of the XOR linked list.Examples:Input: XLL = 4 – 7 – 9 – 7Output: 7 – 9 – 7Explanation: Removing t...
Read More
Linked List
Bit Magic
Advanced Data Structure
Bitwise-XOR
DSA
Count array elements whose all distinct digits appear in K
Given an array arr[] consisting of N positive integers and a positive integer K, the task is to find the count of array elements whose distinct digits are a subset of the ...
Read More
Arrays
Algorithms
Searching
Mathematical
Hash
Competitive Programming
number-digits
Data Structures
HashSet
counter
DSA
Print a pair of indices of an overlapping interval from given array
Given a 2D array arr[][] of size N, with each row representing intervals of the form {X, Y} ( 1-based indexing ), the task to find a pair of indices of overlapping interva...
Read More
Sorting
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
1
...
6630
6631
6632
...
11360