Given a 2-D array of size N*M where, 3\(\leq\) N,M \(\leq\) 1000 . The task is to find the maximum value achievable by a + shaped pattern. The elements of the array can be Read more →
Programs
1 postIntroduction : Function : A function is a set of statements clubbed together to perform a specific task. Function overloading : In Swift two functions can have the same name provided that Read more →
You are given an integer X and an array consisting of containing N integers and you need to convert those integers to 0 but you can only perform the following operation : Read more →
You are given an array arr[] of n positive integers. Now choose two different index i and j such that arr[i] > arr[j] and apply this arr[i] = arr[i]-arr[j] operation as many Read more →
Given a number N, we have to print the minimum subset of palindromes required to express N as a sum of them. Examples : Input : N = 11 Output : [ Read more →
Given 3 integers N, P and X, you have to determine if a sequence [S1, S2, …., SN] can be constructed such that any pair of the sequence satisfying the constraint Si Read more →
Given an array w of size n, consisting of non-negative integers, the task is to find the maximum number of pairs that can be formed, such that the sum of each of Read more →
In this article, we are going to see how to split a string manually without using any in-built function. To split a string, we need an input string and a delimiter. A Read more →
Given a number N, the task is to find the previous perfect square and perfect cube smaller than N. Examples: Examples : Input : N = 6 Output : Perfect Square = Read more →
Given three integers M ,V and R representing the mass (in Kg) , velocity (in m/s) and radius of circular path (in meter) respectively. Our task is to calculate the centripetal force Read more →