Community Profile

photo

张继之


Last seen: 1 month ago Active since 2022

Statistics

  • CUP Challenge Master
  • Community Group Solver
  • Promoter
  • Solver

View badges

Content Feed

View by

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

1 month ago

Solved


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

1 month ago

Solved


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

1 month ago

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

2 months ago

Solved


It dseon't mettar waht oedrr the lrettes in a wrod are.
An internet meme from 2003 (read more here) asserted that readers are relatively insensitive to letter order in words, so long a...

2 months ago

Solved


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

2 months ago

Solved


Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

2 months ago

Solved


Polite numbers. Politeness.
A polite number is an integer that sums of two or more consecutive positive integers. Politeness of a positive integer is a num...

2 months ago

Solved


Missing five
Convert decimal numbers to a base-9 notation missing the digit *5* <<http://www.alfnie.com/software/missing5.jpg>> Too man...

2 months ago

Solved


Symmetric matrix
You must create a n-by-n *symmetric* matrix such that A(row,col) = row/col for col >= row. Example if n =3 : output is : ...

2 months ago

Solved


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

2 months ago

Solved


Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...

2 months ago

Solved


Total energy

2 months ago

Solved


Potential energy calculation

2 months ago

Solved


Kinetic energy calculation

2 months ago

Solved


Laws of motion 1

2 months ago

Solved


Laws of motion 2

2 months ago

Solved


Laws of motion 3

2 months ago

Solved


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

2 months ago

Solved


Laws of motion 5

2 months ago

Solved


Laws of motion 6

2 months ago

Solved


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

2 months ago

Solved


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

2 months ago

Solved


Converts numbers into characters
Converts numbers into characters

2 months ago

Solved


Find the max element of the array
Find the max element of the array

2 months ago

Solved


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

2 months ago

Solved


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

2 months ago

Solved


to the 2 all elements
to the 2 all elements

2 months ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

2 months ago

Solved


Double all elements in the array
Duplicate all elements in the array

2 months ago

Load more