Risolto


First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...

oltre un anno fa

Risolto


Most Frequent Characters
Given a document file or a character array, identify the 'n' most frequently occurring characters and the number of times each a...

oltre un anno fa

Risolto


Juros Simples
Faça uma função que calcule o montagem de um investimento com juros simples que receba como argumentos o capital inicial C, a ta...

oltre un anno fa

Risolto


Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them. For instance, ...

oltre un anno fa

Risolto


Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.

oltre un anno fa

Risolto


'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...

oltre un anno fa

Problema


Intersect three sequences
Most numbers have interesting properties, if you look hard enough and interpret “interesting” liberally. Let’s choose a number a...

oltre un anno fa | 0 | 4 risolutori

Risolto


Subtraction
Given two numbers a and b subtract them

oltre un anno fa

Risolto


Multiplication
Given 2 numbers a and b mulitply them

oltre un anno fa

Risolto


Division
Given two numbers a and b divide them a/b

oltre un anno fa

Risolto


Remainder
Given two number a and b find the remainder when you divide a by b

oltre un anno fa

Risolto


Find the mean
Find the mean of a given sdet of numbers in a vector x

oltre un anno fa

Risolto


Mode
Find the mode of a vector x

oltre un anno fa

Risolto


sum numbers to some value n
sum of numbers up to a value n

oltre un anno fa

Risolto


add num
add two numbers a and b

oltre un anno fa

Risolto


minecraft movie scramble
the following phrase "la la la lava ch ch ch chicken" will be out of order. make it into the correct order

oltre un anno fa

Risolto


num to char
make num into char

oltre un anno fa

Risolto


Maze Solver with Backtracking and Custom Cost Rules
Write a function solve_maze that finds a path from the top-left corner (1,1) to the bottom-right corner (m,n) of a 2D matrix M, ...

oltre un anno fa

Risolto


Find the summation of factorial series
Factorial numbers are n! = 1*2*3....*n the series is 1!, 2!, 3!,........, n!

oltre un anno fa

Risolto


Add two numbers
Given two numbers a and b add them together

oltre un anno fa

Risolto


Prime Number
Determine if a number is prime

oltre un anno fa

Risolto


x = 1

oltre un anno fa

Risolto


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...

oltre un anno fa

Risolto


Check if a Number is a Palindrome Without Converting to String
Write a function that checks if a given positive integer is a palindrome without converting the number to a string or using stri...

oltre un anno fa

Risolto


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...

oltre un anno fa

Risolto


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...

oltre un anno fa

Problema


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 ...

oltre un anno fa | 0 | 7 risolutori

Risolto


Create a fibonacci series

oltre un anno fa

Problema


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. ...

oltre un anno fa | 0 | 5 risolutori

Problema


Sum powers of e-divisors
In number theory the function produces the sum of divisors of an integer raised to the power . Setting sums the divisors, as ...

oltre un anno fa | 0 | 7 risolutori

Carica altro