## Maximum students to pass after giving bonus to everybody and not exceeding 100 marks

Given an array which represents the marks of students. The passing grade is and maximum marks that a student can score is , the task… Read More »

## Minimum numbers (smaller than or equal to N) with sum S

Given N numbers(1, 2, 3, ….N) and a number S. The task is to print the minimum number of numbers that sum up to give… Read More »

## Maximum no. of apples that can be kept in a single basket

Given the ‘N’ number of Basket and the total of Green ‘G’ and Red ‘R’ apples. The task is to distribute all the apples in… Read More »

## Number of matches required to find the winner

Given a number N which represent the number of players participating in Badminton match. The task is to determine the Number of matches required to… Read More »

## Find two numbers with sum and product both same as N

Given an integer N, the task is to find two numbers a and b such that a * b = N and a + b… Read More »

## How to assign values to variables in Python and other languages

This articles discusses methods to assign values to variables. Method 1: Direct Initialisation Method Python3 filter_none edit close play_arrow link brightness_4 code # Python 3… Read More »

## Find Selling Price from given Profit Percentage and Cost

Given the Cost price and Profit Percentage of an item, the task is to calculate the Selling Price. Examples: Input: CP = 500, Profit% =… Read More »

## Farthest distance of a 0 from the center of a 2-D matrix

Given a matrix of odd order mat, the task is to find the farthest distance of a 0 from the center of the matrix. Distance… Read More »

## Count the number of rectangles such that ratio of sides lies in the range [a,b]

Given the length and breadth of N rectangles and a range i.e. [a, b], the task is to count the number of rectangles whose sides(larger/smaller)… Read More »

## Position after taking N steps to the right and left in an alternate manner

Given three integers N, A, and B. A person is standing at 0-th coordinate and moves A steps to the right in the first step,… Read More »

## Program to print hollow Triangle pattern

Given the number of lines as N, the task is to form the given hollow Triangle pattern. Examples: Input: N = 6 Output: ************ *****… Read More »

## Minimum Cuts can be made in the Chessboard such that it is not divided into 2 parts

Given M x N Chessboard. The task is to determine the Maximum numbers of cuts that we can make in the Chessboard such that the… Read More »

## Sum of array Elements without using loops and recursion

Given an array of N elements, the task is to find the Sum of N elements without using loops(for, while & doWhile) and recursion. Examples:… Read More »

## Magical Pattern

Given an integer N as input, the task is to print the Magical Pattern as given below: N . . 3 2 1 2 3… Read More »