What kind of triangle?
Write a function named check_triangle that receives three positive integers as input: a, b, and c.
These three numbers are inte...
7 months ago
Solved
Cluster Partition
Given an array (row or column) of numbers, divide the array into consecutive positive/negative numbers.
0 is to be treated inde...
Zero Out Negative Elements
Write a MATLAB function called zeroNegatives that takes a numeric vector v as input and returns a modified version where all neg...
7 months ago
Solved
Find the closest e-abundant numbers
An abundant number is an integer whose sum of its positive proper divisors—or the sum of its divisors excluding itself—exceeds ...
7 months ago
Solved
Permuted Multiples: Project Euler Problem 52
Return the smallest positive integer, x, for which x, 2x, 3x, 4x, 5x, and 6x, all contain the same digits but in different order...
7 months ago
Solved
Matrix Diagonal Sum
Given a square matrix A of size n x n, write a function to compute the sum of the elements on both the main diagonal and the ant...
7 months ago
Solved
List e-perfect numbers
A perfect number is an integer that equals the sum of its positive proper divisors—or the sum of its divisors excluding itself. ...