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

etwa ein Monat vor

Gelöst


Find the remainder - 01
Given an array of integers, find the remainder when the product of all the elements is divided by N

etwa ein Monat vor

Gelöst


Can you Jump?
You have been provided with input array of integers. You start with initial position at the first index of this input array, and...

etwa ein Monat vor

Gelöst


Palindromic Primes
A Palindromic Prime is a prime number that is also a palindromic number. (Wiki, OEIS) If given a monotonic series (increment...

etwa ein Monat vor

Gelöst


Finding area of a triangle.
Find the area of an equalateral triangle with sides of 3 inches,

etwa ein Monat vor

Gelöst


A Binary Search
One way to locate a target value in a sorted array, is to use a binary search algorithm. Here, you test if the midpoint in the a...

etwa ein Monat vor

Gelöst


Sum of all the divisors of n

etwa ein Monat vor

Gelöst


Plot Line Specifications
Create a line plot for function cos(x) where x is a vector of linearly spaced values going from 0 to input N with an increment o...

etwa ein Monat vor

Gelöst


Return the Square of a Number
Write a function that takes a single numeric input x and returns its square. That is, given x, your function should output x^2....

etwa ein Monat vor

Gelöst


King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

etwa ein Monat vor

Gelöst


The Case of the Missing Prototype – Restore the Correct Frame Order from the Corrupted Security Camera Footage
You’ve finally recovered the security camera footage from the Innovation Lab,but the system malfunctioned and stored frames in t...

etwa 2 Monate vor

Gelöst


Calculate Lift Force on an Airfoil
Write a MATLAB function to calculate the lift force acting on an airfoil given the air density, wing area, velocity of the airfl...

etwa 2 Monate vor

Gelöst


Compute Airspeed from Mach Number
Write a MATLAB function that converts a Mach number to airspeed given the speed of sound aa in m/s: V=M⋅a V = airspeed (m/s) M...

etwa 2 Monate vor

Gelöst


Calculate Drag Force
Write a MATLAB function to compute the drag force on an object moving through air: ​ where: D is drag force (N) ρ is air de...

etwa 2 Monate vor

Gelöst


Calculate Reynolds Number
Write a MATLAB function that calculates the Reynolds number for flow over a flat plate: ​ ρ = fluid density (kg/m³) V = veloc...

etwa 2 Monate vor

Gelöst


Determine if given number is perfect
A number is perfect if it is equal to the sum of its factors, excluding itself. Example The number 6 is perfect since its fact...

etwa 2 Monate vor

Gelöst


Raise a polynomial to a power
In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...

etwa 2 Monate vor

Gelöst


Find the logic and return the nth number
given a sequence of numbers arranged in the following order: A=0,1,3,4,9,10,12,13,27,28,30,31,36,37,...... Write a function th...

etwa 2 Monate vor

Gelöst


find the nth number (plus)
this problem is the harder version of Problem 61014. The numbers 2 and 7 are called lucky numbers, an integer containing only t...

etwa 2 Monate vor

Gelöst


Find nth number
The numbers 2 and 7 are called lucky numbers, an integer containing only the digits 2 and 7 is also called lucky number. The pro...

etwa 2 Monate vor

Gelöst


find the nth fibonacci number
The Fibonacci sequence is defined as follows: give n, find the nth fibonacci number

etwa 2 Monate vor

Gelöst


Mesh the tetrahedron
Problem statement An tetrahedron is a regular polyhedron with 4 vertices and 4 triangular faces. It is also one of the five w...

etwa 2 Monate vor

Gelöst


Mesh the cube
Problem statement : mesh the cube with quadranglar / squared faces An cube / regular hexahedron is a regular polyhedron with ...

etwa 2 Monate vor

Gelöst


Mesh the dodecahedron
Problem statement An dodecahedron is a regular polyhedron with 20 vertices and 12 pentagonal faces. It is also one of the fiv...

etwa 2 Monate vor

Discussion


Extract the Digits of a Number
Extracting the digits of a number will be useful to solve many Cody problems. Instead of iteratively dividing by 10 and taking ...

etwa 2 Monate vor | 0

Gelöst


Mesh the octahedron
Problem statement An octahedron is a regular polyhedron with 6 vertices and 8 triangular faces. It is also one of the five we...

etwa 2 Monate vor

Gelöst


Mesh the icosahedron
Problem statement An icosahedron is a regular polyhedron with 12 vertices and 20 triangular faces. It is also one of the five...

etwa 2 Monate vor

Gelöst


Mesh the square with triangles
Problem statement An square is a regular polygon with 4 vertices and 4 edges. A triangulated mesh T (stands for triangles he...

etwa 2 Monate vor

Gelöst


P(girl likes you | she smiled at you)
Compute the probability Given the input probabilities

etwa 2 Monate vor

Gelöst


Count the Even Digits in a Number
Given a positive integer n, write a function that returns how many digits of n are even. Even digits are: 0, 2, 4, 6, 8

etwa 2 Monate vor

Mehr laden