Community Profile # Ramon Villamangca

Last seen: Today Active since 2018

Learner and Math Enthusiast

Programming Languages:
C++, C, Javascript, MATLAB, Assembly
Spoken Languages:
English

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

Solved

Determine if given number is perfect
A number is <http://en.wikipedia.org/wiki/Perfect_number perfect> if it is equal to the sum of its factors, excluding itself. ...

5 hours ago

Solved

Integer to boolean
Write a general function that will create the following conversation; Input is a column vector with integers Output is a b...

6 hours ago

Solved

Detect a number and replace with two NaN's
Write code which replaces the number 1 with two NaNs. Example X = [ 1 2 NaN 4 1 3 7 NaN 1 4 NaN 2] ...

6 hours ago

Solved

Create logarithmically spaced values (★)
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b. Thus, if a = -2, ...

6 hours ago

Solved

Sum of elements in a vector (★)
(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

7 hours ago

Solved

I'm going to enjoy watching you calculate, Mr Anderson
Smith numbers are numbers such that if you add up all of the digits in the number, that sum equals the sum of all of the digits ...

7 hours ago

Solved

Write a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum nu...

8 hours ago

Solved

Find Logic 21

8 hours ago

Solved

Find Logic 32

9 hours ago

Solved

How to locate the position of an element in a vector without using the find function
(copy of prob 105 with test for find function) Write a function posX = *locatePos* (x,y) which returns the location o...

23 hours ago

Solved

Find Logic 30

23 hours ago

Solved

Summing Rows and Columns
Create a matrix y of size (n+1) whose last column's elements are the summation of the elements of all the other columns and last...

24 hours ago

Solved

Area of a disk
Find the area of a disk or circle. x= radius of the disk.

1 day ago

Solved

most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

1 day ago

Solved

Looking for Squares
Need n squares that equal one square all together, none zero, none fractured. For example, calling squares(2) should output [16...

1 day ago

Solved

Sum of digit range
Example: If A is n1, and B is n2 digit positive numbers. A*B's digit range will be [c d] (c = min & d = max). Then return ...

1 day ago

Solved

Number Puzzles - 019
Borrowing the idea from Pascal Triangle, the following operation can be performed. Starting with an array of numbers from 1 to N...

1 day ago

Solved

prime test
find largest 2 digit prime number

1 day ago

Solved

Number Puzzle - 052

1 day ago

Solved

Number Puzzle - 022

1 day ago

Solved

Binary Inversion
Given the unsigned 8-bit integer x, return the number y which is the binary inversion of x. For example if x is 5, y should b...

1 day ago

Solved

MiniMax
Find the smallest value in array, which is the maximum of its row and column. Example: in array shown below are two numbers w...

2 days ago

Solved

Modular multiplicative inverse
Modular multiplicative inverse is used for _The Chinese Remainder Theorem_ and _RSA algorithm_. You can visit <http://en.wikiped...

2 days ago

Solved

COUNT VOWEL 2
The objective of this problem is to determine the number of unique vowels used in the given string. Now count vowels in STRI...

2 days ago

Solved

Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

2 days ago

Solved

Generate pi using logarithm
Generate pi using logarithm

4 days ago

Solved

Raise Matrix to Power
For a given square matrix x and scalar a, find x^a without using '^' or 'mpower'.

4 days ago

Solved

Guess the Coefficients!
Given a polynomial _p_ known to have positive integer coefficients, deduce the values of the coefficients. For example: ...

4 days ago

Solved

Subtract two positive numbers
Given a and b as a string, return b-a without using string to number conversion functions. a and b must to be a same size and b ...

4 days ago