解決済み

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

4ヶ月 前

解決済み

Implement simple rotation cypher

If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

4ヶ月 前

解決済み

Given a window, how many subsets of a vector sum positive

Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

4ヶ月 前

解決済み

How many trades represent all the profit?

Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

4ヶ月 前

解決済み

Find a subset that divides the vector into equal halves

Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...

4ヶ月 前

解決済み

Convert a temperature reading from Celsius to an unknown scale

Two of the most famous temperature scales are the Celsius and the Fahrenheit scale. In reality, however, there are so many other...

4ヶ月 前

解決済み

Calculate the sphericity of a Raschig ring

Sphericity is a measure of the roundness of any particle. It was defined by Wadell in 1935 as the ratio of the 'surface area of ...

4ヶ月 前

解決済み

Find an overlap in the cleaning schedule of two tank reactors

In a certain pharmaceutical production company, there are two tank reactors operating simultaneously and independent of each oth...

5ヶ月 前

解決済み

Characterize fluid flow in a pipe as to laminar or turbulent

In fluid mechanics, characterizing the flow in a pipe is essential to predicting its behavior. The flow pattern can either be la...

5ヶ月 前

解決済み

Find an optimal placement of coolers on a grid

In a certain chemical plant, 6 new pieces of cooling equipment (coolers) are to be installed in a vacant space. This vacant spac...

5ヶ月 前

解決済み

Design a tubesheet for shell-and-tube heat exchangers

<<https://3.bp.blogspot.com/-kLSbhcCoT2I/WJIh-QVGLGI/AAAAAAAADEs/svvMzBqn4fUfI1rTCCH7Uw-QuDvxx0PxACLcB/s1600/Screenshot_669.jpg>...

5ヶ月 前

解決済み

Create a matrix map of increasing safety levels

The sole nuclear power plant at Grid City suddenly had a meltdown. Luckily, the plant was designed to be in full automation, so ...

5ヶ月 前

解決済み

Count the number of folds needed to pack a large sheet

In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

5ヶ月 前

解決済み

Flag largest magnitude swings as they occur

You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

5ヶ月 前

解決済み

Make a run-length companion vector

Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

5ヶ月 前

解決済み

Compute the missing quantity among P, V, T for an ideal gas

Consider 100 mol of helium gas at a certain pressure (P), volume (V), and temperature (T). Assuming that the ideal gas law appli...

5ヶ月 前

解決済み

Spot the outlier

All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

5ヶ月 前

解決済み

Proper Factors

Generate the proper factors of input integer _x_ and return them in ascending order. For more information on proper factors, ref...

7ヶ月 前

解決済み

Factorize THIS, buddy

List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

7ヶ月 前

問題

How to locate the position of an element in a vector without using the find function

(copy of prob 105 with test for find function) Write a function posX = *locatePos* (x,y) which returns the location o...

7ヶ月 前 | 0 | 24 個のソルバー

解決済み

How to find the position of an element in a vector without using the find function

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

7ヶ月 前

解決済み

Prime factor digits

Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

7ヶ月 前

解決済み

Balanced number

Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

7ヶ月 前

解決済み

Sums with Excluded Digits

Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

7ヶ月 前

解決済み

Find the longest sequence of 1's in a binary sequence.

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

7ヶ月 前

問題

Vector of digits (★★)

Given a positive integer x, construct a vector y with all the digits of x in the order of appearance in x. Thus, if x = 172...

7ヶ月 前 | 0 | 32 個のソルバー

解決済み

Kaprekar Steps

6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

7ヶ月 前

解決済み

The Goldbach Conjecture, Part 2

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

7ヶ月 前

解決済み

Counting Sequence

Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

7ヶ月 前