photo

Nikolas Spyropoulos


Last seen: 12 dagar ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Community Group Solver
  • Promoter
  • Solver

View badges

Feeds

View by

Solved


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: Input...

ungefär ett år ago

Solved


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

ungefär ett år ago

Solved


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

ungefär ett år ago

Solved


Laws of motion 6

ungefär ett år ago

Solved


Laws of motion 5

ungefär ett år ago

Solved


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

ungefär ett år ago

Solved


Laws of motion 3

ungefär ett år ago

Solved


Laws of motion 2

ungefär ett år ago

Solved


Laws of motion 1

ungefär ett år ago

Solved


Kinetic energy calculation

ungefär ett år ago

Solved


Potential energy calculation

ungefär ett år ago

Solved


Total energy

ungefär ett år ago

Solved


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

ungefär ett år ago

Solved


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 ...

ungefär ett år ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

ungefär ett år ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

ungefär ett år ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

ungefär ett år ago

Solved


Find max
Find the maximum value of a given vector or matrix.

ungefär ett år ago

Solved


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

ungefär ett år ago

Solved


Create a code for XNOR
Given two inputs, output XNOR of those two

ungefär 2 år ago

Solved


Min of a Matrix
Return the minimum value in the given matrix.

ungefär 2 år ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

ungefär 2 år ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

ungefär 2 år ago

Solved


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

ungefär 2 år ago

Solved


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

ungefär 2 år ago

Solved


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

ungefär 2 år ago

Solved


Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is, h = (f o g)(x) = f(g(x)) ...

ungefär 2 år ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

ungefär 2 år ago

Solved


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

ungefär 2 år ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

ungefär 2 år ago

Load more