Resuelto


Angular Velocity

más de 3 años hace

Resuelto


Just square the input
Square the number

más de 3 años hace

Resuelto


Find the worst traffic yesterday
A traffic monitoring system records traffic density for the highway in front of the MathWorks headquarters using a raspberry pi ...

más de 3 años hace

Resuelto


Is the number of 1s in a binary integer odd or even?
Your function should turn the input integers into binary form and count the number of 1s in the binary. If the number is odd, re...

más de 3 años hace

Resuelto


Mean Square Error

más de 3 años hace

Resuelto


Taxicab distance

más de 3 años hace

Resuelto


Find the slope of a line that passes through two vectors
Given two vectors p1 and p2, return the slope of a line that passes through p1 and p2. Examples: Input [p1,p2] = deal([0,1],[...

más de 3 años hace

Resuelto


List the nth term of Rozhenko’s inventory sequence
Consider a sequence constructed by repeated inventories. A new inventory begins each time a zero is encountered. The first few i...

más de 3 años hace

Resuelto


List numbers that are not in the Fibonacci sequence
In the list of 4797 Cody problems, 53 deal with or refer to the Fibonacci sequence.* What about the other numbers? Write a funct...

más de 3 años hace

Resuelto


Slope intercept application
Find y given slope (m), x, and y intercept (b).

más de 3 años hace

Resuelto


Compute the drag on a moving vehicle
We assume no rolling resistance, and the simple rule for Drag : , where is the density of the fluid (assumed at 1.2 ), is the ...

más de 3 años hace

Resuelto


Determine if vector has any zeroes
Return 1 if vector has atleast 1 zero, else return 0

más de 3 años hace

Resuelto


Remove Duplicates
Remove duplicates from the vector of integers and display in sorted order

más de 3 años hace

Resuelto


Check if a year is a leap year or not
Return 1 if a given year is a leap year or 0 if it is not

más de 3 años hace

Problema


Easy Sequences 81: Fibonacci Radicals
The radical of a positive integer is defined as the product of the distinct prime numbers dividing . For example, the distinct ...

más de 3 años hace | 2 | 5 solvers

Resuelto


Linear Motion 4
A robot accelerates at a rate of A ft/s2. Assuming the robot starts from rest how much time is required to reach an object loca...

más de 3 años hace

Resuelto


Replace values out of an interval with the lower or upper values
For a vector or matrix X and an interval [n1,n2], the function replace every element of x inferior to n1 by n1, and every elemen...

más de 3 años hace

Resuelto


Number construction III
Given a positive integer, n, return a, b and c, such that 1. n = a^1.5+b^2.5+c^3.5 2. a, b and c are all positive integers...

más de 3 años hace

Resuelto


Number construction II
Given a positive integer, n, return a, b, c and d, such that 1. n = a*2^b+c*3^d 2. a, b, c and d are all positive integers...

más de 3 años hace

Problema


Easy Sequences 80: Sum of the n-th Row of Fibonacci Square Triangle
We shall call the following arrangement of Fibonacci numbers, as the Fibonacci Square Triangle: where...

más de 3 años hace | 1 | 4 solvers

Resuelto


nth permutation of 11...100...0
Given some number of ones and zeros, numOnes and numZeros respectively, find the nth permutation of the vector [ones(1,numOnes),...

más de 3 años hace

Resuelto


Multiply each matrix element by its row index and add its column index.
Return a matrix the same size as the input, multiply each element by its row index and add its column index. Example: x = [ 1 ...

más de 3 años hace

Resuelto


Cluster Partition
Given an array (row or column) of numbers, divide the array into consecutive positive/negative numbers. 0 is to be treated inde...

más de 3 años hace

Resuelto


Find the dividend
Given a vector of pairwise coprime positive integers, p, and a vector of corresponding remainders, r, return a positive integer,...

más de 3 años hace

Resuelto


Easy Sequences 79: Trailing Zeros of Fibonorial Numbers at any Base
The fibonorial of an integer is defined as follows: where: is the -th Fibonacci number ( and for ). I...

más de 3 años hace

Resuelto


Create block matrix of integers (j+k-1) - Part II
Given m, n, p, and q, create an m-by-n matrix made up of submatrices, each sized p-by-q (if possible - the last row and column o...

más de 3 años hace

Resuelto


Create block matrix of integers (j+k-1) - Part I
Given m, n, p, and q, create a matrix of m-by-n blocks (submatrices), each sized p-by-q. The elements of the (j,k)th block all h...

más de 3 años hace

Resuelto


Usage of java.math : N Choose K with unlimited precision
Calculate the binomial coefficient nchoosek with full accuracy. This challenge may use the wonderful word of java.math that allo...

casi 4 años hace

Resuelto


Magical Land
Mother Earth has gifted humanity a magical land to help all life on earth, in the shape of a n-sided regular polygon. You, bein...

casi 4 años hace

Resuelto


Greed is good - Simple partition P[n].
Find a simple partition P[n]. E.g. P[10] = 4 + 3 + 2 + 1. There are many solutions, compute just one set. Don't repeat numbers...

casi 4 años hace

Cargar más