Community Profile # Nikolaos Nikolaou

Last seen: Today 2015 以来アクティブ

Physics , Wholesale auctions , Crypto Mining , Renewable Energy

#### Statistics

• • • • • • • • • • • • バッジを表示

#### Content Feed

The Google Interview: Two Eggs Problem
Consider the following problem, a popular Google interview question: A firm has invented a super-strong egg. For publicity pu...

3日 前

Calculate time taken by light to reach earth surface
We know the time(seconds) taken by light to reach surface of earth. What if the distance varies yearly or source of light moves ...

3日 前

Basic Monte Carlo Simulation
Input is a matrix including service time and probability of service time. Another input is a random number. Function should tran...

5日 前

Decrypt Polybius
Decrypt Polybius square. Please refer to Problem 1150 Polybius Square. input [13 33 14 51] output 'cody'; input [23 0 26 33 4...

5日 前

Recently, I tried to plot a polygon in matlab, and I found there is a lot of embedded function that can be used. However, some f...

11日 前

Splitting Square - Problem the third

12日 前

Easy Sequences 4: Eliminate the Days of Confusion
If a date is written in purely numeric format some dates can be confusing, if we don't know the date format used. For example, "...

21日 前

Easy Sequences 2: Trigonometric function with integral input and output
The function 'F', defined as: , will always return an integer if the input is a natural number (in radian...

21日 前

Draw a x-by-x matrix British flag (Euro 2020)
Draw a x-by-x matrix 'British flag' using '0' and '1'.(x is odd and bigger than 4) x = 5 answer = [0 0 1 0 0 ...

30日 前

Cubic Integer Constrained Solution
Find an integral non-trivial solution (x,y,z ~=0) (x=0 or y=0 or z=0 are trivial) for the cubic equation 987,654,321x + ...

2ヶ月 前

Draw matrix 'Swiss flag'( Euro 2020)
Draw a x-by-x matrix 'Swiss flag' using '0' and '1'.(x is odd and bigger than 4) Example x=5 ...

2ヶ月 前

Round the chord length!!

3ヶ月 前

3n + 1 Problem (a.k.a The Collatz Conjecture)
The 3n + 1 problem (a.k.a The Collatz Conjecture) Consider the following algorithm to generate a sequence of numbers. Start wit...

3ヶ月 前

Flow rate in a pipe

3ヶ月 前

Squares inside a square!

3ヶ月 前

Area of the yellow shaded region

3ヶ月 前

Cancel Middle
Write a function called cancel_middle that takes A, an n-by-m matrix, as an input where both n and m are odd numbers an...

3ヶ月 前

Double Fibonacci
double_fibonacci takes two integers, each greater than one, as input arguments (it does not have to check the format of the inpu...

3ヶ月 前

Sort Except Zeros
Sort the numbers in a vector. But the position of zeros should not be changed. Example: sort_except_zeros( [5 3 0 0 2 4] ) == [...

3ヶ月 前

Find the nth composite number.
Everyone heard about the nth prime number. Let's try to find out the nth composite. For example , 1 is the first composite, 10 i...

3ヶ月 前

Get to a number faster.
If you start with \$1 and, with each move, you can either double your money or add another \$1, what is the smallest number of mov...

3ヶ月 前

Find the number of days in a given year
Given a year number (eg. 2000) as input, find how many days are there in the given year.

3ヶ月 前

The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

3ヶ月 前

Determine the average number of rounds for the following game.
Each round a uniformly distributed random number is picked between 0 and 1. The game ends when the sum of the random numbers is ...

3ヶ月 前

Right shift an array n times with constant space.
Right shift an array n times with constant space, that is, no extra array can be used. Right shift operation: Last element com...

3ヶ月 前

Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.

3ヶ月 前