Resuelto


Function(3)
Use this function to earn some points on your cody journey! function y = your_fcn_name(x) y = x^2 - 12; end

más de 3 años hace

Resuelto


Function(2)
Use this function to earn a few points. function y = your_fcn_name(x) y = x^2 - 8; end

más de 3 años hace

Resuelto


Easy Function
Use this function to earn some points (hit submit): function y = your_fcn_name(x) y = x^2 + 10; end

más de 3 años hace

Resuelto


Functions For Points
Use this fucntion to earn some free points! function y = your_fcn_name(x) y = x^2 + 5; end

más de 3 años hace

Resuelto


Function(1)
Use this function for some points (free) function y = your_fcn_name(x) y = x^2 + 2; end

más de 3 años hace

Resuelto


Use this function for some points
Hit submit if you'd like to earn some points! function y = your_fcn_name(x) y = x^2 - 3; end

más de 3 años hace

Resuelto


Utilize this function
Press submit for some points function y = your_fcn_name(x) y = x^2 - 2; end

más de 3 años hace

Resuelto


Utilizing Functions
Use this function to work for some points: function y = fcn_of_your_choice(x) y = x^2 + 2; end

más de 3 años hace

Resuelto


Create Function
Use the equation below to earn some points! function y = fcn_of_your_choice(x) y = x^2; end

más de 3 años hace

Resuelto


Find The area of the square
Given that the length of the side of a square is x, find the area.

más de 3 años hace

Resuelto


Easy Sequences 93: Recursive Polynomial Function
For a natural number and a polynomial function , we define a recursive function , as follows: , and ...

más de 3 años hace

Resuelto


Given the mass and stiffness of an undamped SDOF system, find the natural frequency and the natural period of vibration
Problem Statement Given the mass and stiffness of an undamped SDOF system, find the system's natural frequency in both Hz and...

más de 3 años hace

Resuelto


Easy Sequences 103: One-line Code Challenge - Evaluate String Math Expressions
Given a character string of a simple mathematical expression containing only numbers, parentheses and arithmetic symbols (+ - * ...

más de 3 años hace

Resuelto


Factor a number into Fermi-Dirac primes
Cody Problem 58018 asked you to list the Fermi-Dirac primes, which are prime powers with exponents that are powers of 2. As note...

más de 3 años hace

Resuelto


List the Fermi-Dirac primes
The Fermi-Dirac “primes” are prime powers with exponents that are powers of 2. The first nine terms of the sequence are 2, 3, 4,...

más de 3 años hace

Resuelto


Find a number m such that 2m and the square of m have the same digit sum
The number has the property that and have the same digit sum. It is the seventh number, including zero, in the sequence of nu...

más de 3 años hace

Resuelto


Given a string s, find the length of the longest substring without repeating characters.
Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" O...

más de 3 años hace

Resuelto


Count estrangements
Recently I made a puzzle for my wife that included a cryptogram, which involves an arrangement of the letters A through Z. I use...

más de 3 años hace

Resuelto


Determine the minimum number of swaps to sort a vector
Cody Problem 1401 asks us to sort a vector with the bubble sort algorithm and count the number of swaps needed. For example, to ...

más de 3 años hace

Resuelto


Easy Sequences 110: Integration of the Sum of a Recursive Trigonometric Function
A trigonometric function, , is defined as follows: , in radians Applying recursively we define another funct...

más de 3 años hace

Resuelto


Easy Sequences 109: Summation of Derivatives of a Trigonometric Function
A trigonometric function, , is defined as follows: where: ; and ...

más de 3 años hace

Resuelto


Calculate BMI
Given weight in kgs and height in metres, calculate body mass index

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


Compute the average precipitation for a watershed using the Thiessen polygon method
Several methods are available for estimating the average precipitation for a watershed from a few observations at rain gauges. T...

más de 3 años hace

Resuelto


Compute flow in a partially full pipe
Problem statement When does the maximum flow occur in a pipe? Intuition might suggest that it occurs when the pipe is flowing f...

más de 3 años hace

Resuelto


Easy Sequences 98: One-line Code Challenge - Ternary Operator Function
Ternary operation is a standard construct in most computer languages. The ternary operator assigns value to a variable depending...

más de 3 años hace

Resuelto


raise x to the nth power
use basic math operators and a variable to solve the problem for a given variable n. (make sure "n" is the variable you use)

más de 3 años hace

Resuelto


multiply by 5
multiply x by 5

más de 3 años hace

Resuelto


multiply by 12
multiply x by 12

más de 3 años hace

Resuelto


Sequence Vectorization - II
This is the second part to the question - Sequence Vectorization - I Given an array of Natural numbers, N, return the sequence ...

más de 3 años hace

Cargar más