## Maximize big when both big and small can be exchanged

Given N Big Candies and M Small Candies. One Big Candy can be bought by paying X small candies. Alternatively, one big candy can be… Read More »

- Taking input from console in Python
- Understanding "static" in "public static void main" in Java
- Structuring Python Programs
- How to assign values to variables in Python and other languages
- Python program to add two numbers
- Sum of array Elements without using loops and recursion
- Count number of Distinct Substring in a String
- Python program to check whether a number is Prime or not
- Program to Print the Trapezium Pattern
- Comments in C/C++
- Print matrix in snake pattern from the last column
- Digital Logic | Binary representations
- Inheritance in Python
- Difference between fundamental data types and derived data types
- Program to find minimum number of lectures to attend to maintain 75%
- Number of elements that can be seen from right side
- Program to print Step Pattern
- Check if a given mobile number is fancy
- Logic Gates in Python
- Immediate smallest number after re-arranging the digits of a given number
- Check if a string is palindrome in C using pointers
- C program to find the length of a string
- Interchange elements of first and last columns in matrix
- Check if the given chessboard is valid or not
- Program to print the given Z Pattern
- What coding habits improve timing in coding contest?
- Program to find Nth term in the series 0, 0, 2, 1, 4, 2, 6, 3, 8,...
- Program to check if two strings are same or not
- Program to print Kite Pattern
- Minimum number of Parentheses to be added to make it valid

Given N Big Candies and M Small Candies. One Big Candy can be bought by paying X small candies. Alternatively, one big candy can be… Read More »

Given three integers N, X and Y, the task is to find the minimum integer that should be added to X to make it at… Read More »

Given an array arr[] where arr[i] is the concentration of juice in ith glass. The task is to find the concentration of the resultant mixture… Read More »

Given two integers N and X. The task is to print the absolute difference between the first X and last X digits in N. Considering… Read More »

Given two numbers L and R, the task is to count the number of odd numbers in the range L to R. Examples: Input: l… Read More »

Given two integers n and m which are the dimensions of a grid. The task is to find the cost of painting the grid cell… Read More »

Given a binary string str consisting of characters ‘0’ and ‘1’. The task is to find whether the string is valid or not. A string… Read More »

Given three integer n, m and k, the task is to find the smallest integer > n such that digit m appears exactly k times… Read More »

Given two integers n and g, the task is to generate an increasing sequence of n integers such that: The gcd of all the elements… Read More »

Given two integers a and b. Now, c can be found as a + b = c. The task is to check if the equation… Read More »

Given an integer N and a pizza which can be cut into pieces, each cut should be a straight line going from the center of… Read More »

Given an integer N, the task is to check whether the number is divisible by the sum of its digits or not. If divisible, then… Read More »

Given an integer num, the task is to count the number of holes in that number. The holes in each digit are given below: Digit… Read More »

Given an integer X and a square matrix mat[][], the task is to remove the first X rows and columns from the given matrix and… Read More »

Given an empty glass, this glass has to be filled with water and the task is to find the maximum amount of water that the… Read More »