Cerinta completa Two friends Anna and Brian, are deciding how to split the bill at a dinner. Each will only pay for the items they consume. Brian gets the check and calculates Anna’s portion. You must determine if his calculation
Bike Racers
Cerinta completa There are bikers present in a city (shaped as a grid) having bikes. All the bikers want to participate in the HackerRace competition, but unfortunately only bikers can be accommodated in the race. Jack is organizing the HackerRace
Bigger is Greater
Cerinta completa Lexicographical order is often known as alphabetical order when dealing with strings. A string is greater than another string if it comes later in a lexicographically sorted list. Given a word, create a new word by swapping some
Big Sorting
Cerinta completa Consider an array of numeric strings where each string is a positive number with anywhere from to digits. Sort the array’s elements in non-decreasing, or ascending order of their integer values and return the sorted array. Example Return
Between Two Sets
Cerinta completa There will be two arrays of integers. Determine all integers that satisfy the following two conditions: The elements of the first array are all factors of the integer being considered The integer being considered is a factor of
Best spot
Cerinta completa In Chile, land are partitioned into a one large grid, where each element represents a land of size 1×1. Shaka is a newcomer in Chile and is trying to start his own business. He is planning to build
Beautiful Triplets
Cerinta completa Given a sequence of integers , a triplet is beautiful if: Given an increasing sequenc of integers and the value of , count the number of beautiful triplets in the sequence. Example There are three beautiful triplets, by
Beautiful Strings
Cerinta completa You are given a string, , consisting of lowercase English letters. A string is beautiful with respect to if it can be derived from by removing exactly characters. Find and print the number of different strings that are
Beautiful Quadruples
Cerinta completa We call an quadruple of positive integers, , beautiful if the following condition is true: Note: is the bitwise XOR operator. Given , , , and , count the number of beautiful quadruples of the form where the
Beautiful Pairs
Cerinta completa You are given two arrays, and , both containing integers. A pair of indices is beautiful if the element of array is equal to the element of array . In other words, pair is beautiful if and only
