Peter Lindberg
Skelleftea Kraft
Followers: 0 Following: 0
Developer
Professional Interests: Database communication, reports
Estadísticas
5 Archivos
Cody1 Problema
56 Soluciones
CLASIFICACIÓN
N/A
of 289.889
REPUTACIÓN
N/A
CONTRIBUCIONES
0 Preguntas
0 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.00%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
4.432 of 19.604
REPUTACIÓN
305
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
5 Archivos
DESCARGAS
6
ALL TIME DESCARGAS
3059
CLASIFICACIÓN
7.580
of 144.256
CONTRIBUCIONES
1 Problema
56 Soluciones
PUNTUACIÓN
675
NÚMERO DE INSIGNIAS
6
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Resuelto
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
más de 9 años hace
Resuelto
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 = ...
más de 9 años hace
Resuelto
Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
más de 9 años hace
Resuelto
Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3
más de 9 años hace
Problema
Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3
más de 9 años hace | 1 | 136 solvers
Resuelto
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...
más de 9 años hace
Resuelto
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...
más de 9 años hace
Resuelto
Complex number
For complex number c=a+bi, write code that will add a and b together.
más de 9 años hace
Resuelto
Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
más de 9 años hace
Resuelto
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...
más de 9 años hace
Resuelto
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
más de 9 años hace
Resuelto
Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...
más de 10 años hace
Resuelto
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
más de 10 años hace
Resuelto
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
más de 10 años hace
Resuelto
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
más de 10 años hace
Resuelto
Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...
más de 10 años hace
Resuelto
radius of a spherical planet
you just measured its surface area, that is the input.
más de 10 años hace
Resuelto
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...
más de 10 años hace
Resuelto
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
más de 11 años hace
Resuelto
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
casi 12 años hace
Resuelto
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...
casi 12 años hace
Resuelto
Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...
casi 12 años hace
Resuelto
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
casi 12 años hace
Resuelto
Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...
alrededor de 12 años hace
Resuelto
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 ...
alrededor de 12 años hace
Resuelto
Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...
alrededor de 12 años hace
Resuelto
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...
alrededor de 12 años hace
Resuelto
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
alrededor de 12 años hace
Resuelto
Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...
alrededor de 12 años hace