Given an array arr[] of n elements, write a function to search a given element x in arr[]. Examples: Input : arr[] = {10, 20, 80, 30, 60, 50, 110, 100, 130, Read more →
Python Programs
35 postsIn a country some special kinds of coins are available. The coin’s value is decided by a rule, that the values of the coins are first N positive odd numbers. As an Read more →
We’re given a function in the format of f(x). We have to find the minimum absolute difference between f(x) and given number k over a range (0 – 10^6). This article assumes Read more →
Two integers n and k is given. Find number of integers i from 1 to n such than difference of i and sum of digits of i is greater than k. Examples: Read more →
We have to print the pattern as given in the example below : Examples: Input : 4 Output : 1 1 12 21 123 321 12344321 123 321 12 21 1 1 Read more →