解決済み


Concatenate input positive integers to obtain a maximum.
Input some integers, you need to concatenate them to obtain a maximum integer. Neither use library function "perms" to list all ...

約4年 前

解決済み


Solve the picross! (Hard)
Solve the picross! http://en.wikipedia.org/wiki/Nonogram The arguments (horz and vert) are cells containing the clues, e.g...

約4年 前

解決済み


Return factorial of input n
example : input :n=4 output=24

約4年 前

解決済み


Determine Poker Hand Winner
Determine the poker hand winner from two hands of cards (each hand will contain the same number of cards between five and thirte...

約4年 前

解決済み


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

約4年 前

解決済み


FIND SUM
Given x,y . Find Sum

約4年 前

解決済み


Calculate the volume of the sphere
Given radius r, calculate the volume of the sphere . Round to 2nd decimal place ex : input : r = 4 output : V = 268.08...

約4年 前

解決済み


Draw "T" inside a Zero Matrix
Given a x-by-x matrix filled with zeros (x> 2). Use 1 to draw a letter "T" into it! Like this: x = 5, y = 1 1 1 1 1 0 0 1 0 0...

約4年 前

解決済み


Draw "C" in a zero matrix
Given a x-by-x matrix filled with zeros (x> 4). Use 1 to draw a letter C into it! Like this: x = 5, y = 1 1 1 1 1 1 0 0 0 0 ...

約4年 前

解決済み


Create the Ulam spiral
Have you ever seen this wonderful spiral ? The Ulam Spiral is arranging prime numbers in a clockwise spiral starting in 0. Give...

約4年 前

解決済み


Check if a matrix Diagonal is equal to its secondary diagonal
Your function should return True if the secondary diagonal is equal to diagonal, and False otherwise. Eg: M = [1 2 1 ...

約4年 前

解決済み


Get the n-th rand number with given seed
Given seed s, return the n-th rand number using rand(). Round the answer with 4 digits. n is a postive integer.

約4年 前

解決済み


Create a vector of equally spaced numbers
A starting element a and ending element b is provided. You need to devise a solution to create a vector that has equally spaced ...

約4年 前

解決済み


Equally spaced vector
Create a vector consisting of equally spaced numbers. Provide arguements for your function 'equal_vectors(a,b,N)' where a is the...

約4年 前

解決済み


Area of a regular hexagon
Given the length of a side of a regular hexagon, return its area rounded to two decimal places.

約4年 前

解決済み


Determining if a Degree Sequence is Potentially a Graph
A degree sequence is a list of numbers representing the degrees of vertices in a graph. While it is difficult to tell if a graph...

約4年 前

解決済み


Ramanujan's Number
About 1729 1729 is the first positive integer which can be expressed as the sum of two positive cubes in two different ways. ...

約4年 前

解決済み


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

約4年 前

解決済み


Add the number of horizontal and vertical movements to each matrix element
Given n, create a square matrix and with element (1,1) = 1, add 1 to each element for each horitizonal and vertical movement. E...

約4年 前

解決済み


Determine Center of Mass for a Set of Floating Spheres
Each sphere has a position determined by theta (x,y plane angle) and tau (elevation angle) as well as L, the distance of the cen...

約4年 前

解決済み


Draw 'Y'
Draw 'Y' in an x-by-x matrix (where x is odd and x >= 3) Examples: x = 3 y = [1 0 1 0 1 0 0 1 0] x = 5 y = [1...

約4年 前

解決済み


Matrix rotation
You are given a 2D matrix of dimension [m,n] and a positive integer r. You have to rotate the matrix r times and print the resul...

約4年 前

解決済み


Solve an ODE: nonlinear third-order equation
Write a function to solve the ordinary differential equation on the domain with , , and either or . The input variable ord ...

約4年 前

解決済み


Truncatable Prime
A truncatable prime is a leading digit is successively removed, then all resulting numbers are prime. Wiki When given a number...

約4年 前

解決済み


Circle Division
A circle can be divided into 2 sections, by placing 2 points in arbitrary locations along its circumference and drawing a straig...

約4年 前

解決済み


Evaluate Poker Hand
Given an input table of card values and card suits between five and thirteen cards, choose the best five cards and output the ra...

約4年 前

解決済み


Determine whether a player solved a Cody problem
Write a function to determine whether a player has solved the specified Cody problems. The problem numbers are specified as a ve...

約4年 前

解決済み


find the second element of array
easy find the second element

約4年 前

解決済み


Vector to Decimal
Given an integer vector , return its decimal representation as a character array. % Examples v = 7 x = '7' % v = [4 2] x...

約4年 前

さらに読み込む