Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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'

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

11 Tage vor

Gelöst


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

12 Tage vor

Gelöst


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

12 Tage vor

Gelöst


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

12 Tage vor

Gelöst


Church Encoding
Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times. For example,...

12 Tage vor

Mehr laden