Fill a zeros matrix (★★★★★)
(Copy of Problem 830)
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for t...
5 years ago
Solved
Flag a convertible string
If a string is able to be entirely converted to an integer, return a "true" flag. Otherwise, return a false flag. For example:
...
5 years ago
Solved
Area of a pentagon
Given the side of a regular pentagon and its apothem return the area of pentagon.
Remember the area of pentagon is calculate ...
Cross ("+") flag returns
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...
5 years ago
Solved
Squares in Squares - Concentric Squares
Given a number, n, create an n x n sized matrix with concentric squares of 1s from the outside in. There should be a gap between...