解決済み


Update course numbers and abbreviations
Suppose that the educational institution where you teach purchases new software to handle many essential functions, including co...

7ヶ月 前

解決済み


Find the circle inscribed in a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the cente...

8ヶ月 前

解決済み


Complete a geometric sequence
In Cody Problem 59786 minnolina asks us to find the integer that completes a randomly sorted arithmetic sequence with one missin...

8ヶ月 前

解決済み


Sequencing Odd Even numbers
Given an input value n, create a vector which contains all odd numbers & even numbers centered around mean of vector. If the me...

8ヶ月 前

解決済み


Out-of-Place Elements Count
Determine the number of elements in a list of integers that are not in their original order after sorting the list in ascending ...

8ヶ月 前

解決済み


Determine if the square root is an integer.
Write code that returns true if perfect square and returns false if square root is not an integer.

8ヶ月 前

解決済み


Fangs of pseudo-vampire number
given a number, find all the fangs of that number. A pseudo-vampire number can have multiple of fangs. The output should be a...

8ヶ月 前

解決済み


Ackermann's Function
Ackermann's Function is a recursive function that is not 'primitive recursive.' <http://en.wikipedia.org/wiki/Ackermann_fun...

8ヶ月 前

解決済み


decipher the number 1 - same key for all digits :)
You will be given a input number (eg) x=12345 you have to figure out the dechiper key and match it with given input and deciph...

8ヶ月 前

解決済み


Hemisphere Volume on Top of a Cylinder
This MATLAB function has to calculate the volume of a hemisphere placed on top of a cylinder, given valid inputs. It takes the r...

8ヶ月 前

解決済み


Check for armstrong number
Given a number, check if it is an armstrong number. Eg: n = 371 Output: 1 Eg: n = 75 Output: 0

8ヶ月 前

解決済み


Matrix symmetry
Given a matrix A = [1 2 3; 4 5 6] Flip it horizontally and vertically to obtain a complete reversal of both rows and columns. ...

8ヶ月 前

解決済み


Determine if input is greater than pi
Evaluate if given number is greater than pi. If greater, return true; else, return false.

8ヶ月 前

解決済み


Determine if input is greater than 100
Evaluate if given number is greater than 100. If greater, return true; else, return false.

8ヶ月 前

解決済み


Sum the two halves of an array with an even number of elements
given an array of an even number of elements, sum the front and back half of the array and return the sums as an array For exam...

8ヶ月 前

解決済み


Multiply to the limit?
If y = 4*x*x/pi/pi then what is the ultimate limiting result of (1+y/1/1)(1+y/3/3)(1+y/5/5)(1+y/7/7)... ... within 1000*eps?

8ヶ月 前

解決済み


Counting Squares
An algorithm starts with a single square and on each of its next iterations adds new squares all around the outside as shown bel...

8ヶ月 前

解決済み


Five Fingers
A little girl has just learnt how to count from 1 to N using the five fingers of her left hand as follows. She starts by calling...

8ヶ月 前

解決済み


Sherlock Holmes: The Spy Problem
A guest at a party is a spy if this person is not known by any other guest, but knows all of them. There is at most one spy at a...

8ヶ月 前

解決済み


Sort Reversal
There are n index cards in a row, with n distinct integers written on them (one number per card) so that the numbers are sorted ...

8ヶ月 前

解決済み


007: Chinese Barrack Invasion
*MISSION:* Successfully invade a military barrack located in China. *WARNING:* There is a row of _n_ security switches protec...

8ヶ月 前

解決済み


Slope intercept application
Find y given slope (m), x, and y intercept (b).

8ヶ月 前

解決済み


Find Current in R circuit.
Find the current in an R circuit for a given input of Voltage (V) and Resistance(R).

8ヶ月 前

解決済み


findPositiveEvenNumbers
Write a MATLAB function findPositiveEvenNumbers that takes an array of integers as input and returns a new array containing only...

8ヶ月 前

解決済み


Sum of Squares
Given a vector v of length n, write a MATLAB function to calculate the sum of the squares of its elements.

8ヶ月 前

解決済み


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

8ヶ月 前

解決済み


Alternate Arrangement
Determine the ways of arranging 'm' men and 'w' women alternatively in a row of 's' seats. Assumptions : s<m and s<w

8ヶ月 前

解決済み


Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.

8ヶ月 前

解決済み


Coin Tossing: Probability of Same Heads for N tosses
A pair of physicists toss a coin n times each. What is the probability that they tossed the same number of heads? Input: N % n...

8ヶ月 前

さらに読み込む