## 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 »

- Structuring Python Programs
- How to assign values to variables in Python and other languages
- Sum of array Elements without using loops and recursion
- Print matrix in snake pattern from the last column
- Logic Gates in Python
- Program to print Step Pattern
- Check if a string is palindrome in C using pointers
- Immediate smallest number after re-arranging the digits of a given number
- Program to Convert Hexadecimal Number to Binary
- Number of elements that can be seen from right side
- Check if a given mobile number is fancy
- Interchange elements of first and last columns in matrix
- Print numbers in matrix diagonal pattern
- Program to print the given Z Pattern
- Program to check if two strings are same or not
- Python Program to print digit pattern
- Program to print Hut
- Program to find the Sum of each Row and each Column of a Matrix
- Minimum number of Parentheses to be added to make it valid
- Print matrix in zig-zag fashion from the last column
- Cost of painting n * m grid
- Count the number of holes in an integer
- Magical Pattern
- Logarithm
- Program to print hollow Triangle pattern
- How to Read and Print an Integer value in Java
- Program to print the given H Pattern
- Check if the frequency of all the digits in a number is same
- Program to convert given Matrix to a Diagonal Matrix
- Count Odd and Even numbers in a range from L to R

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 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 »

Let’s see a basic linear search operation on Python list and tuples. A simple approach is to do linear search, i.e Start from the leftmost… Read More »