## Construct a distinct elements array with given size, sum and element upper bound

Given N size of the original array, SUM total sum of all elements present in the array and K such that no element in array… Read More »

## Find minimum in an array without using Relational Operators

Given an array A[] of non-negative integers, find the minimum in the array without using Relational Operators. Examples: Input : A[] = {2, 3, 1,… Read More »

## Largest in array without using conditionals / bitwise / ternary operators

Define a function int max(int a[], int n) which returns the largest integer from an integer array consisting of n elements (without using conditionals /… Read More »

## Maximum of four numbers without using conditional or bitwise operator

Given four numbers, print the maximum of the 4 entered numbers without using conditional or bitwise operator (not even ternary operators). Examples: Input : 4… Read More »

## Minimum number of bombs

There are aliens in n buildings (minimum of 1 in each) and you have to kill all of them minimum number of bombings. Buildings are… Read More »

## Programming puzzle (Assign value without any control statement)

Given four integers ‘a’, ‘b’, ‘y’ and ‘x’, where ‘x’ can only be either zero or one. Your task is as follows: If ‘x’ is… Read More »