## Fill 8 numbers in grid with given conditions

Place the numbers 1, 2, 3, 4, 5, 6, 7, 8 into the eight circles in the figure given below, in such a way that… Read More »

Place the numbers 1, 2, 3, 4, 5, 6, 7, 8 into the eight circles in the figure given below, in such a way that… Read More »

A Pythagorean Triplet is a set of natural numbers such that a < b < c, for which a^2 + b^2 = c^2. For example,… Read More »

You are a poor person in an island. There is only one shop in this island, this shop is open on all days of the… Read More »

Given two integers N and D, Find a set of N integers such that difference between their product and sum is equal to D. Examples… Read More »

Given n non-negative integers where each represents a point at coordinate . ‘ n ‘ vertical lines are drawn such that the two endpoints of… Read More »

Given an array of n elements.You can double or triple the elements in the array any number of times. After all the operations check whether… Read More »

Given a Linked List, display the linked list in reverse without using recursion, stack or modifications to given list. Examples: Input : 1->2->3->4->5->NULL Output :5->4->3->2->1->NULL… Read More »

Given an array of non-negative integers. We need to construct given array from an array of all zeros. We are allowed to do following operation.… Read More »

Given a number N, check if it is positive, negative or zero without using conditional statements. Examples: Input : 30 Output : 30 is positive… Read More »

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

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 »

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 »

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 »

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 »

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 »