Solved

factorial

There are really some cody problems related to factorial of n, e.g., 42667, 45184, 46054, and etc. It is interesting to ask why ...

13 jours ago

Solved

Use a timetable to analyze a train timetable (Part 1)

Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Th...

16 jours ago

Solved

Compute a determinant

Write a function to compute the determinant of an x matrix with diagonal entries equal to an integer and other entries equal ...

16 jours ago

Solved

three digits

Input three digits no larger than 4，say 1,2 and 3, write the possible largest number composed（concatenation and power） only by t...

17 jours ago

Solved

That's not my hat!

There exists a highly secretive hat consortium. Members possess identical hats. The members are invited to a meeting. All of the...

18 jours ago

Solved

Define the higher order function - foldl

Given a binary function f, a starting value a, and a list (row vector) xs of values, the higher order function foldl folds the f...

18 jours ago

Solved

Random Problem14 - Multiply a vector by a scalar of 2

Multiply a vector by a scalar of 2

19 jours ago

Solved

Swap Characters of a Single Word

Description: In the given input word, convert the lower case to upper case and vice versa. A to a, a to A ... Example: 'Matl...

19 jours ago

Solved

Determine whether the given number is palindrome or not.

A palindromic number (also known as a numeral palindrome or a numeric palindrome) is a number (such as 16461) that remains the s...

19 jours ago

Solved

String Manipulator

Write a script that takes a string as an input and returns a cell array containing – I. the count of vowels. II. Find the ind...

22 jours ago

Solved

Get twenty-four

Inpur four integers in 1 to 10, you may use plus, minus, multiply and divid to get 24. Note that every integer should be used on...

24 jours ago

Solved

Fill a rectangle with 1x1 and 2x2 tiles

A 3x2 rectangle can be filled with 1x1 and 2x2 tiles in three ways: The colors merely distinguish the sizes of the tiles. A 3...

24 jours ago

Solved

Palindrome Problem 1

Continued Problem 50033: A palindrome is one-thirteenth of the sum of and , where and are also palindrome. Give an example o...

26 jours ago

Solved

Square Rooting a Number

This MATLAB Cody exercise requires you to take a number x, square root it, and get y

28 jours ago