Community Profile

# Mehmet OZC

##### Last seen: 1 día ago
2.375 total contributions since 2012

View all

Contributions in
View by

Solved

find the index of a number

1 día ago

Solved

Monty Hall
The classic Monty Hall "Let's Make a Deal" final showcase puzzle pits the contestant against three Doors. Behind one Door are dr...

1 día ago

Solved

Return fibonacci sequence do not use loop and condition
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...

1 día ago

Solved

How Many Months Until It's Today Again?
Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...

1 día ago

Solved

Check Digit - 01
The International Standard Book Number (ISBN) is a numeric commercial book identifier that is intended to be unique. It used ...

2 días ago

Solved

Set zero

2 días ago

Solved

Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

5 días ago

Solved

remove single elements
Given a vector of integers, remove the elements that have appeared only once. The output elements should be in exact order as th...

5 días ago

Solved

Square
X is a number, write a code, where Y should be the square of X.

5 días ago

Solved

Given a matrix A (size m x n) create a matrix B (size m+2 x n+2) which consists of matrix A surrounded by zeros. See Example below:
A = [1 2 3 4 5 6] ----------- B = [0 0 0 0 0 0 1 2 3 0 0 4 5 6 0 0 0 0 0 0]

5 días ago

Solved

Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

5 días ago

Solved

Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by rows.
--------------- A= [ 2 6 -3 7 12 0 -12 5 1] --------------- B= [12 7 1 6 2 0 5 -3 ...

5 días ago

Solved

Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

5 días ago

Solved

Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.
Given a matrix x, *using loops only* return a matrix y, in which all the zeros have "climbed" up to the top. That is, any zeros ...

5 días ago

Solved

Given a matrix A return a vector of the product of the elements in each column using a loop without using prod.
--------------------- for m: 3 1 3 3 10 1 9 1 9 4 1 4 5 6 5 ...

5 días ago

Solved

Find the next Fibonacci number
In the sequence of Fibonacci numbers, every number is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

7 días ago

Solved

Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

7 días ago

Solved

area

7 días ago

Solved

size

7 días ago

Solved

PRIME GENERATOR

7 días ago

Solved

Half the length of the vector

7 días ago

Solved

Remnant

7 días ago

Solved

Find the value of Y

7 días ago

Solved

Size

7 días ago

Solved

Matrix operation

7 días ago

Solved

Swap

7 días ago

Solved

NaN

7 días ago