Community Profile

photo

Gergely Patay


2 021 total contributions since 2012

R&D physicist, LEGO enthusiast

Contact

Gergely Patay's Badges

  • Scavenger Finisher
  • Cody Problems in Japanese Master
  • Introduction to MATLAB Master
  • Community Group Solver
  • Project Euler I
  • Cody Challenge Master
  • Computational Geometry I Master
  • Tiles Challenge Master
  • Speed Demon
  • ASEE Challenge Master
  • Scholar
  • Promoter
  • Commenter
  • Leader
  • CUP Challenge Master

View all

Contributions in
View by

Solved


check whether a number is a pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

4 jours ago

Solved


generate nth pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

4 jours ago

Solved


Determine whether a given point is inside or outside a polygon
A closed polygon may be described by an N x 2 array of nodes, where the last node and the first node are the same. Each row of ...

4 jours ago

Solved


Calculate the area of a circle
Given a circle of diameter x calculate its area

4 jours ago

Solved


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

4 jours ago

Solved


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

4 jours ago

Solved


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

4 jours ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

4 jours ago

Solved


Duplicate all elements in the array
Duplicate all elements in the array

19 jours ago

Solved


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

19 jours ago

Solved


An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the ...

19 jours ago

Solved


Check prime numbers
Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

19 jours ago

Solved


Square
square root of x

20 jours ago

Solved


factorial
calculate x!

20 jours ago

Solved


wipe out!
make all the elements in given x zero.

20 jours ago

Solved


true or false
if the matrix has a zero, return true. else, return false

20 jours ago

Solved


Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

20 jours ago

Solved


to the 2 all elements
to the 2 all elements

environ un mois ago

Solved


square a number twice with square root of 4/5
square a number twice with square root of 4/5

environ un mois ago

Solved


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

environ un mois ago

Solved


Chào các bạn.
Cho 3 số. Tính tổng của chúng

environ 2 mois ago

Solved


Generalised Hamming Number
Inspired by Project Euler n°204 and Problem 1308 by James A generalised Hamming number of type n, has no prime factor larger ...

2 mois ago

Solved


Calculate BMI
Given a matrix |hw| with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 inch = 2.54 centimet...

2 mois ago

Solved


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

3 mois ago

Solved


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

3 mois ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

3 mois ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the rolls is likely to be close to the expected value of a sin...

3 mois ago

Load more