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
How to Build a Step Counting Application in Android Studio?
Many of us have used the step counter on our phones while we go for walk or run. It counts the total steps that the user has walked and displays it on the screen. The othe...
Read More
Project
Picked
Kotlin
Android
Android-Studio
Android ViewPager in Kotlin
ViewPager allows the users to swipe left or right through the pages containing data or see an entirely new screen. You can find this feature in all most many social media ...
Read More
Java
Picked
Kotlin Android
Android
Sort an array in increasing order of GCD of their digits
Given an array arr[] consisting of N positive integers, the task is to sort the array arr[] according to the increasing order of GCD of digits of each element. If GCD of t...
Read More
Arrays
Sorting
Mathematical
array-rearrange
HCF
DSA
Sum of absolute differences of indices of occurrences of each array element | Set 2
Given an array, arr[] consisting of N integers, the task for each array element arr[i] is to print the sum of |i – j| for all possible indices j such that arr[i] = arr[j]....
Read More
Arrays
Oracle
Mathematical
Hash
interview-preparation
cpp-map
DSA
Array element with minimum sum of absolute differences | Set 2
Given an array arr[] consisting of N positive integers, the task is to find an array element X such that sum of its absolute differences with every array element is minimu...
Read More
Arrays
Mathematical
median-finding
DSA
Zoom Scroll View in Android
In this article, we are going to implement zoom on ScrollView. Most of the time when we create a scroll view then it contains a lot of data and if we want to view any cont...
Read More
Java
Android
Android-View
Modify array by replacing elements with their farthest co-prime number from a given range
Given an array arr[] consisting of N integers and two positive integers L and R, the task is to find the farthest co-prime number in the range [L, R] for every array eleme...
Read More
Arrays
Misc
Mathematical
array-rearrange
HCF
DSA
Minimum number of bits of array elements required to be flipped to make all array elements equal
Given an array arr[] consisting of N positive integers, the task is to find the minimum number of bits of array elements required to be flipped to make all array elements ...
Read More
Arrays
Misc
Bit Magic
setBitCount
Mathematical
array-rearrange
DSA
Sum of array elements possible by appending arr[i] / K to the end of the array K times for array elements divisible by K
Given an array arr[] consisting of N integers and an integer K, the task is to find the sum of the array elements possible by traversing the array and adding arr[i] / K, K...
Read More
Arrays
Misc
Mathematical
array-rearrange
divisibility
DSA
Split array into K non-empty subsets such that sum of their maximums and minimums is maximized
Given two arrays arr[] and S[] consisting of N and K integers, the task is to find the maximum sum of minimum and maximum of each subset after splitting the array into K s...
Read More
Arrays
subset
Greedy
Sorting
Mathematical
partition
DSA
Length of longest subset consisting of A 0s and B 1s from an array of strings | Set 2
Given an array arr[] consisting of N binary strings, and two integers A and B, the task is to find the length of the longest subset consisting of at most A 0s and B 1s.Exa...
Read More
Strings
Graph
subset
Dynamic Programming
Mathematical
Technical Scripter
Recursion
Puzzles
C++
C++ Programs
Memoization
DSA
C/C++ Puzzles
Check if sum of arr[i] / j for all possible pairs (i, j) in an array is 0 or not
Given an array arr[] consisting of N integers, the task is to check if the sum of all possible values of (arr[i] / j) for all pairs (i, j) such that 0 i ? j (N - 1) is 0...
Read More
Arrays
Mathematical
Competitive Programming
DSA
Find the Platform at which the given Train arrives
Given a 2D array arr[][3] consisting of information of N trains where arr[i][0] is the train number, arr[i][1] is the arrival time, and arr[i][2] is the duration of stoppa...
Read More
Arrays
Greedy
Searching
Sorting
Heap
priority-queue
min-heap
DSA
Generate matrix from given Sparse Matrix using Linked List and reconstruct the Sparse Matrix
Given a sparse matrix mat[][] of dimensions N*M, the task is to construct and represent the original matrix using a Linked List and reconstruct the givensparse matrix.Exam...
Read More
Linked List
Matrix
Data Structures
DSA
C/C++ Puzzles
Split array into subarrays such that sum of difference between their maximums and minimums is maximum
Given an array arr[] consisting of N integers, the task is to split the array into subarrays such that the sum of the difference between the maximum and minimum elements f...
Read More
Arrays
Dynamic Programming
Mathematical
subarray
partition
DSA
1
...
6398
6399
6400
...
11561