Solved

Usage of java.math : Add, Multiply, Pow

This challenge is an introduction to the wonderful word of java.math that allows unlimited precision calculations. The primary ...

4 jours ago

Solved

Long-digit Subtraction

Suppose you need to subtract a very large integer from another integer. <http://www.mathworks.com/matlabcentral/cody/problems/56...

4 jours ago

Solved

GJam March 2016 IOW: Cody's Jams

This Challenge is derived from <http://code.google.com/codejam/contest/8274486/dashboard GJam March 2016 Annual I/O for Women Co...

4 jours ago

Solved

Repeat middle rows and columns of an array

Given an MxN numeric array (A), return an array (B) in which the middle rows and columns have each been repeated once. It may be...

4 jours ago

Solved

adding huge numbers

Write function called huge_add that adds together two positive integers of any length specified as char vectors using decimal n...

4 jours ago

Solved

Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays)

You will be given various arrays, composed of numbers or strings, including cell arrays of strings. For this problem, the patter...

5 jours ago

Solved

String permutations on phone keyboard

Given a number such as 2639 return all possible string permutations using the phone-keyboard on <http://www.mathworks.com/matlab...

5 jours ago

Solved

Get chain of consecutive characters

Write a function that will output a chain of consecutive characters, given 2 letters as input. It has to work backwards too. Exa...

5 jours ago

Solved

Cell Source Index

Suppose that C is a cell array whose elements consist of row vectors of elements of the same type. For example, C could be a ce...

5 jours ago

Solved

Dealing with correlation results!

In this problem we would like to transform correlation coefficient MATRIX to a VECTOR which includes only unique elements of coe...

5 jours ago

Solved

Repeat string n times - 3

function myOutput = rep_str_3(string1, string2, num1, num2, n) function desiredOutput = rep_str_3('string1', 'STRING2', 0...

5 jours ago

Solved

Cat, Meowcat and Concatenation

Input is a cell array containing several strings. Find the largest continuous sub-string common to all strings. All strings are ...

5 jours ago

Solved

Find the longest match inside two strings

Given two strings, find the longest string which is contained within both strings. e.g. the longest string that is contained ...

5 jours ago

Solved

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

5 jours ago

Solved

Repeat string n times - 2

This is the two variable version of <http://www.mathworks.com/matlabcentral/cody/problems/42482-repeat-string-n-times Repeat str...

5 jours ago

Solved

Repeat string n times

* You will be provided a string (s = 'string1_') * a starting point (num1 = 6) (always bigger than or equal to zero) * and n (...

5 jours ago

Solved

Guess the Coefficients!

Given a polynomial _p_ known to have positive integer coefficients, deduce the values of the coefficients. For example: ...

5 jours ago

Solved

Return the Nth Output from an Input Command

*Description* Given _F_, a cell array whose first element is a function handle and subsequent elements are arguments, return ...

5 jours ago

Solved

LocateMembership | Membership of Matrix in another matrix

Let a and b be given by a = [ 2 1 1 1 1 2 1 1 1 1 2 1 1 1 1 2 4 0 0 0 ] b = [ 2 1 ...

6 jours ago

Solved

Angle difference between Hour Hand and Minute Hand of clock

*Calculate the difference of angles between Hour hand and Minute hand of clock* E.g. 1) At 12:00 Angle Difference = 0 deg...

6 jours ago

Solved

Determine value using Look-up table method

Given a set of 2 vectors x and y related in a certain way, you are supposed to find value of y (ydash) given a particular value ...

6 jours ago

Solved

first step for Huffman Coding (easy)

Given a string, you must sort the characters by occurrence (from lowest to highest). This step is necessary to generate a Huf...

6 jours ago

Solved

Create numeric palindromes and their square roots

Given a number n (1<=n<=9), return a left justified numeric matrix p with all the palindromes of the form 1 to n and back to 1. ...

6 jours ago

Solved

Filter values in a vector

Cody often benefits from a functional style of programming. For example, your score is often better when you compose multiple fu...

6 jours ago

Solved

Combine Data With Gaps

Combine data sets a and b where the datasets have "gaps" or unique points. Example: Input a = [1,0; 2,1; ...

7 jours ago

Solved

time difference

The arrays x and y contain time values in the form of: x = [hours minutes seconds] Create the output z which contains the...

7 jours ago

Solved

Word Distance - Average Sort

Based on the method of <https://www.mathworks.com/matlabcentral/cody/problems/44815-word-distance-sum this problem>, write a fun...

7 jours ago