Gelöst


Angular Velocity

mehr als 3 Jahre vor

Gelöst


Just square the input
Square the number

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


Mean Square Error

mehr als 3 Jahre vor

Gelöst


Taxicab distance

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Problem


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

mehr als 3 Jahre vor | 2 | 5 Lösungsvorschläge

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Problem


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

fast 4 Jahre vor | 1 | 4 Lösungsvorschläge

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Mehr laden