解決済み


Scaling vertically parabola by evaluating its area over an interval
Let p be a quadratic polynomial, with its axis of symmetry being the y-axis. Considering the vertical shift of its vertex to the...

5日 前

解決済み


Squares inside a square!

5日 前

解決済み


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

5日 前

解決済み


Insert certain elements into a vector.
We start with vector V. Some values W will be inserted into V, at positions U. Say, |V| contains |[1 2 3 4 5]| and |W| is |[0...

6日 前

解決済み


Get the value 100
Knowing that 123-45-67+89=100, write a function that gives this result for any order of the digits in the input. Otherwise, the ...

6日 前

解決済み


realsmall
Please return the smallest positive number. This is a little silly problem, but the solution has some funny properties...

6日 前

解決済み


Number Puzzles - 019
Borrowing the idea from Pascal Triangle, the following operation can be performed. Starting with an array of numbers from 1 to N...

6日 前

解決済み


Number Puzzle - 027

6日 前

解決済み


A sequence of Ones
You are given number(s) with all digits - 1. Your answer will depend on the count of 1 in the given number, for example - x1...

6日 前

解決済み


Check if a year is a leap year or not
Return 1 if a given year is a leap year or 0 if it is not

6日 前

解決済み


Define the higher order function - foldl
Given a binary function f, a starting value a, and a list (row vector) xs of values, the higher order function foldl folds the f...

6日 前

解決済み


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...

6日 前

解決済み


Number Puzzles - 018

6日 前

解決済み


Orientation of a 3D coordinate frame
The orientation of a body-fixed frame {B} with respect to the world frame {W} is described by an SO(3) rotation matrix. Compute...

6日 前

解決済み


Where is 1?
There is a 3d matrix [A] that consist of many zeros and only one. A=zeros(100,100,100); i=randi(100); j=randi(100); k=randi(...

6日 前

解決済み


Number Puzzles - 015

6日 前

解決済み


Number Puzzle - 022

6日 前

解決済み


Number Puzzle - 118

6日 前

解決済み


Number Puzzle - 119

6日 前

解決済み


Number Puzzles - 016

6日 前

解決済み


Number Puzzles - 020

6日 前

解決済み


String Logic 4
Example: 'CAT' --> 'IGZ' 'DOG' --> 'JUM' 'MATLAB' --> 'SGZRGH' 'ROSY' --> 'XUYE' 'TRUST' --> 'ZXAYZ' 'MOSTLY' --> 'SUYZ...

6日 前

解決済み


Number Puzzle - 098

6日 前

解決済み


Sales Tax

6日 前

解決済み


Number Puzzles - 021

6日 前

解決済み


Number Puzzle - 075

6日 前

解決済み


Number Puzzle - 076

6日 前

解決済み


Number Puzzle - 079

6日 前

解決済み


Number Puzzle - 077

6日 前

解決済み


Number Puzzle - 078

6日 前

さらに読み込む