Solved


String Find with Wildcards of a Cell array
Given a cell array of strings and a search string with single character (?) or multiple character (*) wildness return the indice...

1 year ago

Solved


Find the quantization index of an analog value using a 6-bit quantizer.
Given a sinusoidal waveform x(t)=4.5*sin(2*pi*100*t) is sampled at 8000 sample per second. Assume that signal range is between -...

1 year ago

Solved


Find two numbers that add up to the target value
Given a vector A and target n, return the indices of two numbers that add up to n. If there are multiple solutions, return the f...

1 year ago

Solved


Minimum Distance Point to Segment
This Challenge is to determine the minimum distance from a 2-D line segment defined by two points to a point. The point is (p...

1 year ago

Solved


Speed of light:Experiment
in 1849, Fizeau set up an experiment to measure the speed of light. The discription of this experiment can be found on wikipedi...

2 years ago

Solved


Find the Peak Particle Velocity on a ETL structure
PPV is a vibration parameter that can connect stress to a structure, it is measured in mm/s or mm/s-1. The higher the PPV the mo...

2 years ago

Solved


Logic 7

2 years ago

Solved


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 years ago

Problem


Compute a sequence with the whyphi sieve
A few problems on Cody involve sieving. For example, Cody Problem 45367 involves the famous Sieve of Eratosthenes. CP 50811uses ...

2 years ago | 0 | 4 solvers

Solved


USC Fall 2012 ACM : Code Word Minimum Flipped Bits
This Challenge is to solve Question A of the <http://contest.usc.edu/index.php/Fall12/Home USC ACM Fall 2012 Contest>. Given ...

2 years ago

Solved


Easy Sequences 40: Quadratic Congruence
Quadratic Congruence is a modular equation of the form: . In this exercise you will be given a vector containing the coefficie...

2 years ago

Solved


Alternate Arrangement
Determine the ways of arranging 'm' men and 'w' women alternatively in a row of 's' seats. Assumptions : s<m and s<w

2 years ago

Solved


Draw the Greek letter 'α'
Given the dimensions of a matrix nRow and nCol where nCol > nRow, draw the Greek letter 'α' with 1's and 0's. You can consider t...

2 years ago

Solved


Opposite point of the earth, what is the antipodal of a point ?
Given two strings(lat and long) that represent the geographic coordinates of a point in the earth, you have to find out what is ...

2 years ago

Problem


Alert a city about a spill
Problem statement Cody Problem 54750 involved determining the length of a stream affected by a spill. Any municipalities within...

2 years ago | 2 | 4 solvers

Problem


Find primes and integers that solve an equation
Write a function to find all primes and non-negative integers that solve the equation where is an integer. If there are no...

2 years ago | 1 | 10 solvers

Solved


Find the triplet
Given an array x of size n > 3 and an integer N, return the indices of three elements in the array that sum up to the given inte...

2 years ago

Solved


Cos x
Retorne o cosseno de x, onde x está em radianos

2 years ago

Solved


Número de elementos do array
Retorne o número de elementos de um array

2 years ago

Solved


Valor absoluto de x
Dado uma entrada x, retornar o seu valor absoluto

2 years ago

Solved


Seno de x
Calcule o seno de x, onde x está em radianos

2 years ago

Solved


Eleve ao cubo!
dado uma entrada x, encontre o seu cubo

2 years ago

Solved


What is the current time in Darwin, Australia?
Traders need to track exchange calendars and trading hours in detail, and account for time zone differences and daylight savings...

2 years ago

Solved


Compute the area of a Q
A figure resembling a Q (as in “quadrature”) is constructed in the following way: A right triangle is drawn with the left vertex...

2 years ago

Problem


List the smallest numbers with n distinct prime factors
The author of a book I am reading asked a mathematician what it feels like to be sixty. He wrote He replied, “Sixty, sandwiched...

2 years ago | 1 | 6 solvers

Problem


Classify numbers as abundant, deficient, or perfect
A number is perfect if the sum of its proper divisors (i.e., divisors excluding the number itself) is equal to itself. For examp...

2 years ago | 0 | 8 solvers

Solved


Family Savings Analysis
Given the bank accounts of individuals defined by a list of tuples containing the last name, first name, and savings: accounts ...

2 years ago

Problem


Determine whether a property description closes
The arrival of summer makes think back to the summers I spent working for my father’s engineering firm. For the first several s...

2 years ago | 1 | 5 solvers

Problem


Compute the area of a Q
A figure resembling a Q (as in “quadrature”) is constructed in the following way: A right triangle is drawn with the left vertex...

2 years ago | 0 | 8 solvers

Solved


Determine the potential energy in a springrope which hangs over from a bridge
The task is to figure out the energy a person with mass has when hung on a rope over a bridge when given the length from the sus...

2 years ago

Load more