解決済み


Justify the character string in center with proportional fonts
how to justify a string of character into center with proportional fonts? Example: x='justify string ' output is ' justif...

12年弱 前

解決済み


Reverse Calculator
Use this reverse calculator and give correct output Its simple, In my Reverse calculator if you press 0 it will be considered...

12年弱 前

解決済み


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

12年弱 前

解決済み


Let's get back to school, and create multiplication tables
For a given range, create multiplication tables. (start is always < endno) Example start = 17 endno = 19 Then, ...

12年弱 前

解決済み


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F_n = F_(n-1) + F_(n-2) * where F_0 = 0 and F_1 ...

12年弱 前

解決済み


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

12年弱 前

解決済み


Negative Infinity
Round the given array a towards negative infinity.

12年弱 前

解決済み


Reverse a matrix
Its simple. You have to reverse a given matrix.

12年弱 前

解決済み


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

12年弱 前

解決済み


Find and replaces spaces from a input string with *
For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...

12年弱 前

解決済み


Volume of a sphere given its surface area
You just measured its surface area, that is the input.

12年弱 前

解決済み


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

12年弱 前

解決済み


Area of rhombus
Calculate the rhombus area

12年弱 前

解決済み


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

12年弱 前

解決済み


Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

12年弱 前

解決済み


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

約12年 前

解決済み


Cody Computer Part 5 - Guess the Name of Cody Computer
Network computers have generally a nickname to be identified. Can you guess the nickname of the Cody Computer? No inpu...

約12年 前

解決済み


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

約12年 前

解決済み


Determine the square root
Determine the square root of the value the user has entered, n.

約12年 前

解決済み


Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

約12年 前

解決済み


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

約12年 前

解決済み


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

約12年 前

解決済み


convert matrix to single column
given any matrix, convert it to single column

約12年 前

解決済み


Back to basics 5 - Clipboard
Covering some basic topics I haven't seen elsewhere on Cody. Copy the input string to the clipboard

約12年 前

解決済み


Back to basics 4 - Search Path
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the user's portion of the current search...

約12年 前

解決済み


Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

約12年 前

解決済み


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

約12年 前

解決済み


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

約12年 前

解決済み


Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

約12年 前

解決済み


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

約12年 前

さらに読み込む