Zoltán Csáti
Université libre de Bruxelles
Followers: 0 Following: 0
Professional Interests: differential equations, fluid mechanics, extended finite element method, MATLAB
Statistik
RANG
423
of 295.448
REPUTATION
183
BEITRÄGE
37 Fragen
70 Antworten
ANTWORTZUSTIMMUNG
81.08%
ERHALTENE STIMMEN
57
RANG
1.963 of 20.227
REPUTATION
914
DURCHSCHNITTLICHE BEWERTUNG
4.90
BEITRÄGE
13 Dateien
DOWNLOADS
32
ALL TIME DOWNLOADS
8834
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Gelöst
Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...
fast 7 Jahre vor
Gelöst
The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...
fast 7 Jahre vor
Gelöst
It dseon't mettar waht oedrr the lrettes in a wrod are.
An internet meme from 2003 (read more <http://www.snopes.com/language/apocryph/cambridge.asp here>) asserted that readers are re...
etwa 10 Jahre vor
Gelöst
Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...
etwa 10 Jahre vor
Gelöst
Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...
etwa 10 Jahre vor
Gelöst
Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...
etwa 10 Jahre vor
Gelöst
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
etwa 10 Jahre vor
Gelöst
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
etwa 10 Jahre vor
Gelöst
Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
etwa 10 Jahre vor
Gelöst
Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...
etwa 10 Jahre vor
Gelöst
Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...
mehr als 10 Jahre vor
Gelöst
Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];
mehr als 10 Jahre vor
Gelöst
Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....
fast 11 Jahre vor
Gelöst
Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...
fast 11 Jahre vor
Gelöst
radius of a spherical planet
you just measured its surface area, that is the input.
fast 11 Jahre vor
Gelöst
Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...
fast 11 Jahre vor
Gelöst
Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...
fast 11 Jahre vor
Gelöst
Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
fast 11 Jahre vor
Gelöst
Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.
fast 11 Jahre vor
Gelöst
Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...
fast 11 Jahre vor
Gelöst
Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12
fast 11 Jahre vor
Gelöst
Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];
fast 11 Jahre vor
Gelöst
Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...
fast 11 Jahre vor
Gelöst
Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...
fast 11 Jahre vor
Gelöst
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
fast 11 Jahre vor
Gelöst
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
fast 11 Jahre vor
Gelöst
Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5
etwa 11 Jahre vor
Gelöst
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
etwa 11 Jahre vor
Gelöst
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...
fast 12 Jahre vor