Articles

Apr 19, 2025 HackerRank

Pangrams

A pangram is a string that contains every letter of the alphabet. Given a sentence determine whether it is a pangram in the English alphabet

Read more →
Apr 19, 2025 Codechef

CRED Coins

For each bill you pay using CRED, you earn X CRED coins. At CodeChef store, each bag is worth 100 CRED coins.

Read more →
Apr 18, 2025 Leetcode

Binary Watch

A binary watch has 4 LEDs on the top to represent the hours (0-11), and 6 LEDs on the bottom to represent the minutes (0-59). Each LED represents a zero or one.

Read more →
Apr 17, 2025 Codeforces

Game With Sticks

After winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made of n horizontal and m vertical.

Read more →
Apr 17, 2025 Leetcode

Longest Palindrome

Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters.

Read more →
Apr 09, 2025 Leetcode

Reverse Integer

Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range.

Read more →
Apr 09, 2025 Codechef

Best of Two

Chef took an examination two times. In the first attempt, he scored XX marks while in the second attempt he scored YY marks

Read more →
Apr 08, 2025 Leetcode

554 Brick Wall

There is a rectangular brick wall in front of you with n rows of bricks. The ith row has some number of bricks each of the same height (i.e., one unit)

Read more →
Apr 08, 2025 Codechef

Monopoly

There is said to be a monopoly in the market if the profit made by one company is strictly greater than the sum of profits made by all other companies

Read more →
Mar 30, 2025 Codeforces

427 Prison Transfer

The prison of your city has n prisoners. As the prison can't accommodate all of them, the city mayor has decided to transfer c of the prisoners to a prison.

Read more →
Mar 17, 2025 Codeforces

Problem - 158B Taxi

After the lessons n groups of schoolchildren went outside and decided to visit Polycarpus to celebrate his birthday. We know that the i-th group consists

Read more →
Mar 17, 2025 HackerRank Math

Find the Point

Consider two points,  and . We consider the inversion or point reflection, , of point  across point  to be a  rotation of point  around . Given  sets of points

Read more →
Mar 16, 2025 HackerRank

Staircase

Its base and height are both equal to . It is drawn using # symbols and spaces. The last line is not preceded by any spaces.

Read more →
Mar 16, 2025 Leetcode

Two Sum Problem

LeetCode Problem 1. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

Read more →