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 →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 →Jon Snow now has to fight with White Walkers. He has n rangers, each of which has his own strength.
Read more →We define the usage of capitals in a word to be right when one of the following cases holds:
Read more →For each bill you pay using CRED, you earn X CRED coins. At CodeChef store, each bag is worth 100 CRED coins.
Read more →We say that a string contains the word hackerrank if a of its characters spell the word hackerrank. Remeber that a subsequence maintains the order of characters
Read more →Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents.
Read more →Kattapa, as you all know was one of the greatest warriors of his time
Read more →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 →Recently Chef joined a new company. In this company, the employees have to work for X
Read more →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 →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 →We consider two strings to be anagrams of each other if the first string's letters can be rearranged to form the second string.
Read more →Mahmoud has n line segments, the i-th of them has length ai. Ehab challenged him to use exactly 3 line segments to form a non-degenerate triangle.
Read more →Write a function to find the longest common prefix string amongst an array of strings.
Read more →Janmansh has to submit 3 assignments for Chingari before 10 pm and he starts
Read more →Alef the Frog is in an two-dimensional maze represented as a table.
Read more →A new TV streaming service was recently started in Chefland called the Chef-TV.
Read more →Given two strings a and b, return the minimum number of times you should repeat string a so that string b is a substring of it.
Read more →Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents
Read more →Determine whether the average of A and B is strictly greater than C or not?
Read more →David has several containers, each with a number of balls in it. He has just enough containers to sort each type of ball he has into its own container.
Read more →Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
Read more →There are literally dozens of snooker competitions held each year, and team Jinotega
Read more →Valentine's Day is approaching and thus Chef wants to buy some chocolates for someone special.
Read more →Given a set of distinct integers, print the size of a maximal subset of where the sum of any numbers in is not evenly divisible by k.
Read more →The count-and-say sequence is a sequence of digit strings defined by the recursive formula
Read more →Sherlock is currently trying to catch a serial killer who kills a person each day.
Read more →You have two strings of lowercase English letters. You can perform two types of operations on the first string
Read more →Polycarp loves lowercase letters and dislikes uppercase ones. Once he got a string s consisting only of lowercase and uppercase Latin letters.
Read more →Given an array of strings strs, group the anagrams together. You can return the answer in any order.
Read more →Given an Integer N, write a program to reverse it.
Read more →Given an array of integers, determine the minimum number of elements to delete to leave only elements of equal value.
Read more →There are two exits in a bus with 100 seats
Read more →Anton likes to listen to fairy tales, especially when Danik, Anton's best friend, tells them. Right now Danik tells Anton a fairy tale.
Read more →Given two binary strings a and b, return their sum as a binary string.
Read more →The factorial of the integer , written , is defined as
Read more →Comrade Dujikov is busy choosing artists for Timofey's birthday and is recieving calls from Taymyr from Ilia-alpinist.
Read more →Chef is watching a football match. The current score is A
Read more →You are given an array prices where prices[i] is the price of a given stock on the ith day.
Read more →A child is playing a cloud hopping game. In this game, there are sequentially numbered clouds that can be thunderheads or cumulus clouds.
Read more →Little Petya loves presents. His mum bought him two strings of the same size for his birthday
Read more →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 →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 →There is a string of lowercase English letters that is repeated infinitely many times. Given an integer
Read more →A soldier wants to buy w bananas in the shop. He has to pay k dollars for the first banana.
Read more →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 →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 →Taum is planning to celebrate the birthday of his friend, Diksha. There are two types of gifts that Diksha wants from Taum
Read more →Election season has started in Chefland and the election commission wants to know the count of eligible voters.
Read more →The Hamming distance between two integers is the number of positions at which the corresponding bits are different.
Read more →There are n stones on the table in a row, each of them can be red
Read more →There is a new mobile game that starts with consecutively numbered clouds.
Read more →Watson likes to challenge Sherlock's math ability. He will provide a starting and ending value that describe a range of integers.
Read more →During the break the schoolchildren, boys and girls, formed a queue of n people in the canteen.
Read more →Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.
Read more →A new e-mail service "Berlandesk" is going to be opened in Berland in the near future
Read more →Chef wants to reach home as soon as possible. He has two options.
Read more →Given an m x n binary matrix mat, return the distance of the nearest 0 for each cell.
Read more →Given an integer n, return the number of prime numbers that are strictly less than n.
Read more →John Watson knows of an operation called a right circular rotation on an array of integers.
Read more →«Polygon» is a system which allows to create programming tasks in a simple and professional way.
Read more →Vasily the Programmer loves romance, so this year he decided to illuminate his room with candles
Read more →A jail has a number of prisoners and a number of treats to pass out to them
Read more →There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1
Read more →There are five people playing a game called "Generosity
Read more →HackerLand Enterprise is adopting a new viral advertising strategy
Read more →Given a positive integer num, return true if num is a perfect square or false otherwise.
Read more →A video player plays a game in which the character competes in a hurdle race.
Read more →Jim is doing his discrete maths homework which requires him to repeatedly calculate nCr(n choose r) for different values of n.
Read more →Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were.
Read more →There are n stones on the table in a row, each of them can be red, green or blue
Read more →Given a non-negative integer x, return the square root of x rounded down to the nearest intege.
Read more →Little Petya loves presents. His mum bought him two strings of the same size for his birthday
Read more →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 →Implement pow(x, n), which calculates x raised to the power n (i.e., xn).
Read more →You are given n sticks with positive integral length a1,a2
Read more →A sentence is a list of words that are separated by a single space with no leading or trailing spaces
Read more →Given an array of bird sightings where every element represents a bird type id
Read more →There is a robot on an m x n grid. The robot is initially located at the top-left corner.
Read more →Given a triangle array, return the minimum path sum from top to bottom
Read more →A Stack is a linear data structure that follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out).
Read more →A message containing letters from A-Z is being encoded to numbers using the following mapping.
Read more →On an 8×8 grid, some horizontal rows have been painted red, and some vertical columns have been painted blue
Read more →You are given two non-empty linked lists representing two non-negative integers.
Read more →Alice and Bob are playing a game on an array a of n positive integers
Read more →A Discrete Mathematics professor has a class of students. Frustrated with their lack of discipline.
Read more →Given a Tic-Tac-Toe board as a string array board, return true if and only if it is possible to reach
Read more →Given an array of integers and a positive integer , determine the number of pairs where and + is divisible by .
Read more →The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k
Read more →Suppose you have n integers labeled 1 through n. A permutation of those n integers.
Read more →Given a string array words, return the maximum value of length(word[i]) * length(word[j])
Read more →You are given an array of integers nums, there is a sliding window of size k.
Read more →A Binary Tree Data Structure is a hierarchical data structure in which each node has at most two children.
Read more →Valera had two bags of potatoes, the first of these bags contains x (x ≥ 1) potatoes.
Read more →Given an integer array nums, find a subarray that has the largest product, and return the product.
Read more →There are a number of people who will be attending ACM-ICPC World Finals.
Read more →Given an integer array nums, you need to find one continuous subarray such that if you only sort this subarray in non-decreasing order.
Read more →One day three best friends Petya, Vasya and Tonya decided to form a team and take part in programming contests.
Read more →The 47th ICPC World Finals 2023 (International Collegiate Programming Contest) was a prestigious global programming competition where top university.
Read more →Bob has a playlist of N songs, each song has a singer associated with it (denoted by an integer)
Read more →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 →The efficiency and accuracy of algorithms have to be analysed to compare them and choose a specific algorithm for certain scenarios.
Read more →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 →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 →You are given an array representing a row of seats where seats[i] = 1 represents a person sitting in the ith seat, and seats[i] = 0 represents that the ith.
Read more →Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.
Read more →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 →the year 1800 was a leap year in the Julian calendar. However, by that time, many countries had already switched to the Gregorian calendar, which did not consid
Read more →