解決済み


Check Digit - 01
The International Standard Book Number (ISBN) is a numeric commercial book identifier that is intended to be unique. It used ...

4日 前

解決済み


Cat's paw - 01
lets imagine a cat, standing on an infinitely long row of tiles. since its a 'cat', string length=3; it takes 3 tiles to stand. ...

4日 前

解決済み


Take it out
Consider the integer number sequence N (1 to infinity). After each iteration, take out the (k+1)th elements; where k is the n...

4日 前

解決済み


Hanging cable - 02
previous problem - <https://www.mathworks.com/matlabcentral/cody/problems/45373-hanging-cable-01> The height of the poles...

4日 前

解決済み


Hanging cable - 01
The height of the poles is h the length of the cable is l u need to find the minimum distance between the poles whic...

4日 前

解決済み


How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

4日 前

解決済み


Kissing Circles-01
Three circles are mutually tangent to each other and also to a line. find the radius of the smallest circle. The radius of th...

4日 前

解決済み


Weighted Names
A cell is given which contains several names. You've to return those names sorted by their weight. Weight is to be calculate...

4日 前

解決済み


Orthogonal Circles
Check whether two given circles are orthogonal or not. Two circles are orthogonal if they create a right angle at their inter...

4日 前

解決済み


Decimal to binary conversion (without using built-in function)
convert the given decimal number to its equivalent binary without using built-in function. * n=18 * out='10010'

4日 前

解決済み


Number generator
In this problem, a number will be given. starting with the first digit, keep on adding all subsequent digits till the state (...

4日 前

解決済み


GJam 2017 Kickstart: Leader (Small)
This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader>. This ...

4日 前

解決済み


'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...

4日 前

解決済み


Convert Cylindrical Cooridinates into Spherical Coordinate
For Cylindrical coordinate point, rho, fie (degrees) and z. Convert these points in Spherical Cooridinate System and save result...

4日 前

解決済み


Question 1
Implement a function named q1 with one input argument named n. This function should return the multiplication of all odd numbers...

4日 前

解決済み


Recursive triangle area
Given triangle 1 with sides of length a, b, and c. Triangle 2 is constructed within triangle 1 by bisecting each side. Triangl...

4日 前

解決済み


Complete a geometric sequence
In Cody Problem 59786 minnolina asks us to find the integer that completes a randomly sorted arithmetic sequence with one missin...

4日 前

解決済み


Center-of-Mass Index of a Vector
Given a numeric vector x, treat each element x(i) as a mass located at index i. Compute the center-of-mass index idx = sum(i *...

4日 前

解決済み


First Unique Character
Given a character vector s, return the first character that appears exactly once in s. If every character repeats at least once...

4日 前

解決済み


Odd Run Sums
Given a row vector x of integers, find every maximal run of consecutive odd numbers and return a row vector containing the sum o...

4日 前

解決済み


Mirror Pair Mean
Given a row or column vector v, create a vector y of the same size where each element is replaced by the average of itself and i...

4日 前

解決済み


Upper vs Lower Triangle
Create an n × n matrix A such that: Elements strictly above the main diagonal are 1 Elements strictly below the main diagonal ...

4日 前

解決済み


Identify Similar Rows in a Matrix Based on Sequence of Non-zero Elements
In this problem, you are given a matrix of positive integers. Your task is to identify and return all rows in the matrix that ar...

4日 前

解決済み


Project Euler: Problem 18, Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bott...

4日 前

解決済み


Broken numlock key, oppps !
The numlock key on my computer is pressed and is now broken, so I cant press it to switch off the numlock mode. And hence I am n...

4日 前

解決済み


longest common substring : Skipped character version
Two strings are given. Find the longest common substring between them. The substring characters need not be adjacent. They, howe...

4日 前

解決済み


longest common semi-substring
Finding longest common substring is a common problem in string processing. This problem is a variant of that. Two strings are g...

4日 前

解決済み


Decrypt the cypher using XOR encryption (for beginners)
Inspired by Project Euler n°59 Each character on a computer is assigned a unique code and the preferred standard is ASCII (...

4日 前

解決済み


Mmm! Multi-dimensional Matrix Multiplication
You have got a couple of multi-dimensional matrices, A and B. And want to multiply them. For the first 2 dimensions, an ordinary...

4日 前

解決済み


Accurate Division
Given three integers x, y and d, return x/y (as a string) to d significant digits. Remove leading and trailing zeros. Example...

4日 前

さらに読み込む