Erfan Kabiri
Followers: 0 Following: 0
Statistiken
0 Probleme
89 Lösungen
RANG
N/A
of 290.025
REPUTATION
N/A
BEITRÄGE
0 Fragen
0 Antworten
ANTWORTZUSTIMMUNG
0.00%
ERHALTENE STIMMEN
0
RANG
of 19.622
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
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...
mehr als 5 Jahre vor
Gelöst
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...
mehr als 5 Jahre vor
Gelöst
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
mehr als 5 Jahre vor
Gelöst
Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...
mehr als 5 Jahre vor
Gelöst
The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
mehr als 5 Jahre vor
Gelöst
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 + ...
mehr als 5 Jahre vor
Gelöst
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...
mehr als 5 Jahre vor
Gelöst
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...
mehr als 5 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. Examp...
mehr als 5 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...
mehr als 5 Jahre vor
Gelöst
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...
mehr als 5 Jahre vor
Gelöst
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
mehr als 5 Jahre vor
Gelöst
Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product
mehr als 5 Jahre vor
Gelöst
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
mehr als 5 Jahre vor
Gelöst
multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...
mehr als 5 Jahre vor
Gelöst
Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...
mehr als 5 Jahre vor
Gelöst
Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5
mehr als 5 Jahre vor
Gelöst
Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...
mehr als 5 Jahre vor
Gelöst
Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.
mehr als 5 Jahre vor
Gelöst
Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...
mehr als 5 Jahre vor
Gelöst
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...
mehr als 5 Jahre vor
Gelöst
Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.
mehr als 5 Jahre vor
Gelöst
Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...
mehr als 5 Jahre vor