## Find the largest composite number that divides N but is strictly lesser than N

Given a composite number N, the task is to find the largest composite number that divides N and is strictly lesser than N. If there… Read More »

- Must do Math for Competitive Programming
- Which C++ libraries are useful for competitive programming?
- Breadth First Search without using Queue
- Which Java libraries are useful for competitive programming?
- Minimize the maximum difference between adjacent elements in an array
- 7 Best Coding Challenge Websites in 2020
- Which Python Modules are useful for competitive programming?
- Speed up Code executions with help of Pragma in C/C++
- Basic Algorithm Techniques Not Taught in Academics
- Setting up a C++ Competitive Programming Environment
- Writing code faster during Competitive Programming in C++
- Check if sum of Fibonacci elements in an Array is a Fibonacci number or not
- Count of subarrays of an Array having all unique digits
- Logarithm tricks for Competitive Programming
- Move all zeroes to end of array using Two-Pointers
- Default values in a Map in C++ STL
- Sum of GCD of all possible sequences
- How To Approach A Coding Problem ?
- Minimize the maximum difference of adjacent elements after at most K insertions
- Maximum LCM among all pairs (i, j) from the given Array
- Count of subarrays which start and end with the same element
- Submatrix of given size with maximum 1's
- Kth most frequent Character in a given String
- Longest Mountain Subarray
- Length of the smallest substring which contains all vowels
- Find distance between two nodes in the given Binary tree for Q queries
- Count of substrings of length K with exactly K distinct characters
- Find maximum subset sum formed by partitioning any subset of array into 2 partitions with equal sum
- Find last remaining element after reducing the Array
- Queries for elements having values within the range A to B in the given index range using Segment Tree

Given a composite number N, the task is to find the largest composite number that divides N and is strictly lesser than N. If there… Read More »

Given an array arr[] of N integers. The task is to find the number of inversion. Two elements arr[i] and arr[j] form an inversion if… Read More »

Given strings str1 and str2. The task is to find that if str1 is substring in shuffled form of str2 or not. Print “YES” if… Read More »

Developers and students solve a lot of coding questions of data structures and algorithms but most of them don’t understand the importance of it. A… Read More »

You may have heard about Jack Dorsey (Twitter), Mark Zuckerberg (Facebook), Kevin Systrom (Instagram) and many others. Right, these are one of the top programmers… Read More »

Every coder wants to be one of the best! Yes, it’s true. But do you ever think how can someone be considered as the best… Read More »

Given an integer array arr[], the task is to find the length of the longest subarray with an equal number of odd and even elements.… Read More »

The primary goal of a compiler is to reduce the cost of compilation and to make debugging produce the expected results. Not all optimizations are… Read More »

Given a binary string str of length N and an integer K, the task is to find the minimum number of steps required to move… Read More »

Given a number N, the task is to count all possible combinations of pairs formed using adjacent elements. Note: If an element exists already in… Read More »

Given an array arr[] of N unique positive integers and an element X, the tasks is to count the total possible number of subsets of… Read More »

Given a string str, the task is to find the maximum length K such that there exist two sub-sequences A and B each of length… Read More »

Given an integer N, the task is to check if the count of divisors of N is prime or not. Examples: Input: N = 13… Read More »

Given an integer X, the task is to find the three distinct integers greater than 1 i.e. A, B and C such that (A *… Read More »

Given two array A[] and B[] each of length N where A[i] and B[i] are the prices of the ith item when sold in market… Read More »