A résolu


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

2 mois il y a

A résolu


row removal
Consider a matrix and remove the first row of the matrix.

2 mois il y a

A résolu


Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...

2 mois il y a

A résolu


Remove a specific column with min value
Remove the column that contain the min value in the matrix? If you like the problem, please give it a like:)

2 mois il y a

A résolu


Remove a specific column with max value
Remove the column that contain the max value in the matrix? If you like the problem, please give it a like:)

2 mois il y a

A résolu


Remove a specific row with min value
Remove the row that contain the min value in the matrix? If you like the problem, please give it a like:)

2 mois il y a

A résolu


Remove a specific row with max value
Remove the row that contain the max value in the matrix? If you like the problem, please like it :)

2 mois il y a

A résolu


Draw a '4' in a zero matrix!

2 mois il y a

A résolu


Draw a '6' in a zero matrix!

2 mois il y a

A résolu


Draw a '9' in a zero matrix!

2 mois il y a

A résolu


Draw a '7' in a zero matrix!

2 mois il y a

A résolu


Draw a '8' in a zero matrix!

2 mois il y a

A résolu


Draw a '3' in a zero matrix!

2 mois il y a

A résolu


Draw a '2' in a zero matrix!

2 mois il y a

A résolu


Draw a '5' in a zero matrix!

2 mois il y a

A résolu


Draw a '1' in a zero matrix!

2 mois il y a

A résolu


Draw 'J'
Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

3 mois il y a

A résolu


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

3 mois il y a

A résolu


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

3 mois il y a

A résolu


Draw 'F'
Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

3 mois il y a

A résolu


Draw 'E'
Draw a x-by-x matrix 'E' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

3 mois il y a

A résolu


Draw 'D'.
Draw a x-by-x matrix 'D' using 0 and 1. example: x=4 ans= [1 1 1 0 1 0 0 1 1 0 0 1 1 1 1 0]

3 mois il y a

A résolu


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

3 mois il y a

A résolu


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

3 mois il y a

A résolu


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

3 mois il y a

A résolu


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

3 mois il y a

A résolu


Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

3 mois il y a

A résolu


Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and h=...

3 mois il y a

A résolu


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

3 mois il y a

A résolu


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

3 mois il y a

Charger plus