Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Problem


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

mehr als ein Jahr vor | 0 | 4 Lösungsvorschläge

Gelöst


Subtraction
Given two numbers a and b subtract them

mehr als ein Jahr vor

Gelöst


Multiplication
Given 2 numbers a and b mulitply them

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Mode
Find the mode of a vector x

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


add num
add two numbers a and b

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


num to char
make num into char

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Prime Number
Determine if a number is prime

mehr als ein Jahr vor

Gelöst


x = 1

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Problem


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

mehr als ein Jahr vor | 0 | 7 Lösungsvorschläge

Gelöst


Create a fibonacci series

mehr als ein Jahr vor

Problem


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

mehr als ein Jahr vor | 0 | 5 Lösungsvorschläge

Problem


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

mehr als ein Jahr vor | 0 | 7 Lösungsvorschläge

Mehr laden