解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


Sum of all the divisors of n

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

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

3ヶ月 前 | 0

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

さらに読み込む