A résolu


End Digits

2 mois il y a

A résolu


Find the square of the sum of the digits of a number
If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

2 mois il y a

A résolu


Find the numeric characters in a string and return their index
Given a string S, return the index of any numeric characters. S = 'The next meeting will be held in 2 weeks.'; idx = fin...

2 mois il y a

A résolu


Print the date for a given number using Indian calendar reference
Print date for a given number in date reference is INDIAN calendar, not Christ's Birth The Vikram Samvat is said to have been...

2 mois il y a

A résolu


Indirect Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

2 mois il y a

A résolu


Pronounce digits
Given a number num, select the first d decimal places and pronounce the digits (in English). The function returns the pronunciat...

2 mois il y a

A résolu


Simple Income Tax

2 mois il y a

A résolu


Convert integers from primary notation to base 10
The primary system of expressing numbers has three digits: m, x, and p, which correspond to -1, 0, and 1. The places in a primar...

2 mois il y a

A résolu


Getting the absolute index from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get the <http://www.ma...

2 mois il y a

A résolu


String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

2 mois il y a

A résolu


Count Vowels at Even Indices
Write a function `vowelEvenIndices` that counts the number of vowels (a, e, i, o, u) located at even indices (0-based) in a give...

2 mois il y a

A résolu


Probability of red tulips (at both ends of a row)
I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out t...

2 mois il y a

A résolu


Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

2 mois il y a

A résolu


Available ingredients + recipe -> number of cakes
Write a function Egg_Milk_Sugar(L, recipe) to determine the maximum number of cakes that can be prepared given a list of availab...

2 mois il y a

A résolu


Determinants
Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

2 mois il y a

A résolu


Turn year differences into "s score and y years ago"
President Lincoln opened his now-legendary Gettysburg Address with the famous words "Four score and seven years ago...". Given t...

2 mois il y a

Problème


Return the product of all elements of a vector or matrix without using built-in functions
Compute the product of all elements of the input array without using the built-in functions prod, ans, or size.

2 mois il y a | 0 | 18 solveurs

A résolu


Find a common edge
First input is T, a triplet list of indices. Second input is e = [e1 e2], a row vector, couple of indices (positive distinct int...

2 mois il y a

A résolu


Pancakes for everyone!
Accordingly to the <http://nl.mathworks.com/matlabcentral/cody/problems/42460-the-cake-is-a-lie problem 42460>. All the children...

2 mois il y a

A résolu


Calculate triangle area
Imagine that you want to calculate the areas of some triangles given in matrix form. First the coordinates of the vertices of th...

2 mois il y a

A résolu


Triangle Numbers Below N
This is an offshoot of <http://www.mathworks.com/matlabcentral/cody/problems/5-triangle-numbers Cody Problem 5: Triangle Numbers...

2 mois il y a

A résolu


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

2 mois il y a

A résolu


Pascal's triangle
<https://en.wikipedia.org/wiki/Pascal%27s_triangle> if the order is: x = 3; the output will be: output = [0 0 0 1 0 0 ...

2 mois il y a

A résolu


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

2 mois il y a

A résolu


Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides. Output(b): * Is true if there are any 3 va...

2 mois il y a

A résolu


Find the centroid of triangle
Imagine that you want to calculate the *centroid* of some _triangles_ given in matrix form. First the coordinates of the vertice...

2 mois il y a

A résolu


Similar triangles

2 mois il y a

A résolu


given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

2 mois il y a

A résolu


Minimum possible M of the maximum side of a triangle of given area A.
Suppose a triangle has area A. Suppose it has three sides S1, S2, and S3. Suppose M = max([S1 S2 S3]). What is the minimum po...

2 mois il y a

Charger plus