Community Profile

photo

Ramon Villamangca


Last seen: Today Aktiv seit 2018

Learner and Math Enthusiast

Programming Languages:
C++, Java, Javascript, MATLAB, Ruby, Perl, Swift, Assembly
Spoken Languages:
English

Statistics

All
  • Revival Level 1
  • First Answer
  • Sequences And Series I Master
  • Cody 10th Anniversary 10-Day Streak
  • Matrix Patterns III Master
  • Sequences And Series III Master
  • Indexing I Master
  • Computational Geometry I Master
  • Famous
  • Cody Problems in Japanese Master
  • Indexing II Master
  • Functions I Master

Abzeichen anzeigen

Content Feed

Anzeigen nach

Gelöst


Solve an ODE: draining tank
Write a function to compute the time to drain a cylindrical tank of diameter from an initial level to a level . The outflow oc...

etwa 7 Stunden vor

Problem


Easy Sequences 104: One-line Code Challenge - GCDs of Sum of Consecutive Cubes
For a natural number, n, the function CC(n) is defined as follows: In other words, CC(n) is the sum of cubes ...

etwa 13 Stunden vor | 0 | 0 Lösungsvorschläge

Gelöst


distance to a straight line (2D) given any 2 distinct points on this straight line
Given 2 points P1,P2 on a straight line and a 3rd point, determine the distance of the 3rd point to the straight line. Your answ...

ein Tag vor

Gelöst


The prisoner
"We want information, information, information." "Who are you?" Input can be a string or a number (array).

2 Tage vor

Gelöst


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

2 Tage vor

Gelöst


Funny problems
Generate the following vector: if n=1 then q=1; elseif n=2 then q=[2 2 1]; elseif n=3 then q=[3 3 3 2 2 1]; ... end

2 Tage vor

Gelöst


Find the repeating elements and repetitions of a row vector.
So let's say that x is a vector, for example, x = [4, 4, 5, 5, 5, 6, 7, 7,8, 8, 8, 8] Now we want to get the following two ve...

2 Tage vor

Gelöst


Convert vector of strings to lower triangular matrix
Given a non-empty vector vec of strings, please put its elements into the lower triangular half of a square matrix M column-wise...

3 Tage vor

Gelöst


Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

3 Tage vor

Problem


Easy Sequences 103: One-line Code Challenge - Evaluate String Math Expressions
Given a character string of a simple mathematical expression containing only numbers, parentheses and arithmetic symbols (+ - * ...

5 Tage vor | 0 | 0 Lösungsvorschläge

Gelöst


List numbers such that every sum of consecutive positive integers ending in those numbers is composite
The sequence in question in this problem involves numbers such that all sums of consecutive positive integers ending with are ...

7 Tage vor

Gelöst


List the two-bit primes
Each year at Christmas, my father-in-law and his partner send me the Puzzle Mania section from the New York Times. This year’s e...

8 Tage vor

Gelöst


Error handling
If the input is a negative number, generate an error. Otherwise, return the number.

11 Tage vor

Gelöst


Easy Sequences 20: Counting Prime-sided Rectangles
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

12 Tage vor

Gelöst


Armstrong Number
Write a function name armstrong_check that checks whether the given input is an Armstrong Number or not. It returns logical True...

12 Tage vor

Gelöst


Zero finder
Write a function named 'zero_finder' that takes a matrix as input and returns the row index of the last zero for each for each c...

12 Tage vor

Gelöst


Inscribe a circle in a triangle with a side of length equal to the circle’s circumference
A circle of radius is inscribed in a triangle with a side that has a length equal to the circle’s circumference. The center of ...

14 Tage vor

Problem


Easy Sequences 102: One-line Code Challenge - Take While Function
takeWhile is another useful functional programming construct. The takewhile function is similar to the built-in function arrayfu...

15 Tage vor | 0 | 0 Lösungsvorschläge

Problem


Easy Sequences 101: One-line Code Challenge - n-th Digit of Fibonacci Sequence
For a given index , the -th Fibonacci number, is defined as: for or , and for . What this problem requires is find the dig...

18 Tage vor | 0 | 0 Lösungsvorschläge

Gelöst


Regular polygon bounded by and bounding a circle
As the number of sides (or vertices) of a regular polygon goes to infinity, its perimeter and area go to the perimeter and area ...

20 Tage vor

Gelöst


Optimally fill a container with elements of different sizes
Given a row vector V of different numerical values and a size limit L, return a 1x2 vector A, containing (a) the largest sum of ...

20 Tage vor

Gelöst


Vector addition
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

20 Tage vor

Gelöst


Sum of combinations
Input: *X = 40*, *Y = [40 20 10 4]* Output: *Z = [1 0 0 0; 0 2 0 0; 0 1 2 0; 0 1 1 3; 0 1 0 5; 0 0 4 0; 0 0 3 3; 0 0 2 5; 0 ...

20 Tage vor

Gelöst


Factorizing a number into a given number of factors
Given a positive integer, n, and another positive integer, b, return a matrix, M, of width b, with the following properties: (a)...

21 Tage vor

Gelöst


Radius of an inner N-dimensional sphere
A hypercube is an N-dimensional analogue of a square (N=2). Similarly, an N-sphere is an N-dimensional analogue of a circle. Not...

21 Tage vor

Gelöst


Bernoulli's Triangle
Generate the bernoulli's triangle upto nth row. <https://mathworld.wolfram.com/BernoulliTriangle.html>

22 Tage vor

Gelöst


4 Digit Sequence Repetitions
Given a 4 digit integer, a sequence can be created such that the next digit in the sequence is the ones digit from the sum of th...

22 Tage vor

Gelöst


Identify the sequence
Given a row vector, x, return 1 if it is an arithmetic series, or 2 if it is a geometric series. If it is neither, return 0. ...

22 Tage vor

Gelöst


Repeat string n times
You will be provided a string (s = 'string1_') a starting point (num1 = 6) (always bigger than or equal to zero) and n (n = 3)...

22 Tage vor

Gelöst


Integer Sequence - 1
Check the test suite to determine the relationship between input integer scalar and output integer scalar.

22 Tage vor

Mehr laden