Community Profile

photo

PurpleDiab


Last seen: 約1ヶ月 前

hhh

1,074 2016 年以降の合計貢献数

連絡する

PurpleDiab's バッジ

  • Leader
  • Cody5 Easy Master
  • Matrix Patterns I Master
  • Computational Geometry I Master
  • Scholar
  • Tiles Challenge Master
  • Indexing I Master
  • Indexing II Master
  • ASEE Challenge Master
  • CUP Challenge Master
  • Solver

詳細を表示...

貢献した分野
表示方法

解決済み


Simple Matrix
Make the following matrix without typing it in one by one. [1 2 3; 2 4 6; 4 8 12] x=[1 2 3].

約1ヶ月 前

解決済み


Problem for beginners
M is a nxm matrix. Swap the fist and the second last column with eachother. X=[1 2 3;4 5 6;7 8 9] Y=[2 1 3;5 4 6;8 7 9]

約1ヶ月 前

解決済み


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

約1ヶ月 前

解決済み


Matrix problem for beginners
Make a matrix [0,0,0;1,1,1;2,2,2]. X=[0,1,2]

約1ヶ月 前

解決済み


Box
Give the volume of a box, x is equal to the body diagonal.

約1ヶ月 前

解決済み


Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

約1ヶ月 前

解決済み


Square
X is a number, write a code, where Y should be the square of X.

約1ヶ月 前

解決済み


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

約1ヶ月 前

解決済み


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

約1ヶ月 前

解決済み


Matrix for beginners
Multiply x and y elemwise.

約1ヶ月 前

解決済み


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

2ヶ月 前

解決済み


Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

2ヶ月 前

解決済み


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

2ヶ月 前

解決済み


row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.

2ヶ月 前

解決済み


Outlier number!
Find a number which has maximum distance from the mean value of vector A. Example: A=[5 2 1 5 6 2 5 9] y=9

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

2ヶ月 前

解決済み


Convert Kilometers to Miles
Convert kilometers to miles. Consider 1 km = 0.62 mile. Note: Don't use the '*' operator.

2ヶ月 前

解決済み


Number of Flip Flop required in ripple counter
Find the number of flip flop required in ripple counter. If modulus of counter (N) is given find outnumber of Flip Flop (n) r...

2ヶ月 前

解決済み


Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

2ヶ月 前

解決済み


Find 10's complement
Find 10's complement of a given number. An example is <http://electrical4u.com/9s-complement-and-10s-complement/ shown here>.

2ヶ月 前

解決済み


Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

2ヶ月 前

解決済み


Find the mode of the given input
Find the statistical <http://en.wikipedia.org/wiki/Mode_(statistics)/ mode> of the given input. Example: If X is matr...

2ヶ月 前

解決済み


Convert to Binary Coded Decimal
Convert from decimal representation to <http://en.wikipedia.org/wiki/Binary-coded_decimal Binary Code Decimal> (or BCD) represen...

2ヶ月 前

解決済み


Count number of words in string
Count number of words in string Examples 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

2ヶ月 前

解決済み


Equidistant numbers containing certain value in an interval
Given a lower and upper bound of an interval, distance between numbers, and one particular number from that interval, create an ...

2ヶ月 前

解決済み


Find Rotated Substring
Given a string s1, find if a rotated version of s1 is present in a second string s2. For example, rotated version of some str...

2ヶ月 前

解決済み


Poker Series 01: isStraightFlush
The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

2ヶ月 前

解決済み


Additive persistence
Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

2ヶ月 前

解決済み


Find the starting index of a consecutive condition
Given a logical vector |v|, and a positive integer |n|, return the smallest index |i| that satisfies: all( v(i : i+n-1) ) =...

2ヶ月 前

Load more