Find a Number that Appears Only once in array of duplicates

Find a Number that Appears Only once in array of duplicates

Given an array where every element occurs three times, except one element which occurs only once. Find the element that occurs once....

Find largest continuous sum in an array

Find largest continuous sum in an array

Write an efficient C program to find the sum of contiguous subarray within a one-dimensional array of numbers which has the largest ...

How to find the Largest Difference in an Array

How to find the Largest Difference in an Array

Question: You have an array of integers:  int[] A = { 10, 3, 6, 8, 9, 4, 3 }; My goal is to find the largest difference between A[...

Einstein Soccer Puzzle

Einstein Soccer Puzzle

Puzzle : This puzzle is based on soccer team. There are 7 boys on a soccer team. Each boy has a different position, jersey number, a...

3 switches 1 light puzzle

3 switches 1 light puzzle

You have a set of 3 light switches outside a closed door. One of them controls the light inside the room. With the door closed fr...

Five Pirates splitting 100 coins puzzle

Five Pirates splitting 100 coins puzzle

Puzzle : 5 pirates of different ages have a treasure of 100 gold coins. On their ship, they decide to split the coins using ...

Set value in SOAPUI using Groovy Script

Set value in SOAPUI using Groovy Script

SoapUI is used to test Web Services. For large number test cases, automation we can use Groovy script to reduce manual effort. Us...

Top