已解决


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 前

问题


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 前 | 0 | 6 个解题者

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

问题


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 前 | 2 | 6 个解题者

问题


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 前 | 1 | 11 个解题者

已解决


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 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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 前

已解决


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 前

问题


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 前 | 1 | 7 个解题者

问题


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 前 | 0 | 10 个解题者

已解决


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 前

问题


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 前 | 1 | 6 个解题者

问题


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 前 | 1 | 10 个解题者

已解决


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 前

已解决


Area of right triangle
Given a hypotenuse and a leg , calculate the area of right triangle.

2 years 前

已解决


Hofstadter Female and Male sequences
The Hofstadter Female (F) and Male (M) sequences are defined as follows Write a function to compute for a given n. See http...

2 years 前

问题


Travel a path
In Cody Problem 60251, minnolina asks us to determine the end point given a string indicating unit movements forward, backward, ...

2 years 前 | 0 | 8 个解题者

已解决


x

2 years 前

已解决


Instructions Following
Complete the function follow(s) which, for a given string (containing only the letters 'f', 'b', 'l', 'r'), calculates the final...

2 years 前

问题


Add non-triangular numbers
The nth triangular number is the sum of the first n positive integers. The sequence of triangular numbers starts 1, 3, 6, 10, 15...

2 years 前 | 1 | 16 个解题者

问题


Compute the area of a lune
Write a function to compute the area of the shaded moon-shaped region in the figure below—that is, the area of a smaller circle ...

2 years 前 | 1 | 10 个解题者

加载更多