Community Profile

photo

Lizhi Zhu


Aktiv seit 2018

Followers: 0   Following: 0

Keep curiosity always.

Programming Languages:
Python, C++, MATLAB, Fortran
Spoken Languages:
English, Chinese

Statistiken

  • Draw Letters
  • Cody Problems in Japanese Master
  • Cody 10th Anniversary 10-Day Streak
  • Scholar
  • CUP Challenge Master
  • Project Euler I
  • Promoter
  • Treasure Hunt Participant
  • MATLAB Central Treasure Hunt Finisher
  • Introduction to MATLAB Master
  • Community Group Solver
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Gelöst


Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

9 Monate vor

Gelöst


Power supply: 230V to 115V
The problem is simple: we have a wall outlet which supplies 230V and an apparatus that requires 115V. Software is always chea...

etwa ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Find Logic 29

mehr als ein Jahr vor

Gelöst


Find Logic 31

mehr als ein Jahr vor

Gelöst


Find Logic 30

mehr als ein Jahr vor

Gelöst


Find Logic 21

mehr als ein Jahr vor

Gelöst


Find Logic 28

mehr als ein Jahr vor

Gelöst


文字列の最初と最後の文字だけ抜き出しましょう。
文字列の最初と最後の文字をつなげて返すような関数を作成しましょう。 もし文字が一つしかない場合、その文字は最初と最後の文字のため、関数はその文字を二回返すようにしておきましょう。 例: stringfirstandlast('borin...

mehr als ein Jahr vor

Gelöst


英語の文章内の母音を取り除くコードを書きましょう。
与えられた英語の文章内の母音を取り除きましょう。 例: 入力 s1 が 'Jack and Jill went up the hill' の場合、 出力 s2 は 'Jck nd Jll wnt p th hll' * (英語版) ...

mehr als ein Jahr vor

Gelöst


ベクトルのスケーリング
入力したベクトルの大きさを1にしてください。

mehr als ein Jahr vor

Gelöst


チェッカーボードを作ろう
整数 n が与えられた時、以下の様な1と0を含むn×nの行列を作成しましょう。a(1,1) は1にする必要があります。 例: 入力 n = 5 出力 a が [1 0 1 0 1 0 1 0 1 0 ...

mehr als ein Jahr vor

Gelöst


二つのベクトルの要素ごとの積の平均を計算しよう
二つの同じ長さのベクトルが与えられたとき、二つのベクトルの要素ごとの積の平均を求めましょう。 例: 二つのベクトル [1 2 3] と [10 15 20] が与えられたとき、 それぞれの要素ごとの積の平均を取ると、 解は 33.3333 と...

mehr als ein Jahr vor

Gelöst


Function composition
Write a function that accepts two function handles f and g and returns the composition h. That is, h = (f o g)(x) = f(g(x)) ...

mehr als ein Jahr vor

Gelöst


ascii value
let input='a' output=97

mehr als ein Jahr vor

Gelöst


Cody Matlab Version
What is the current Cody Matlab Release? *Output:* string *Examples:* '(R2012a)' or 'R2012a' Hint: We have mo...

mehr als ein Jahr vor

Gelöst


Next Lower Power of B
Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is less than or equal to _n_. E...

mehr als ein Jahr vor

Gelöst


Television Screen Dimensions
Given a width to height ratio of a TV screen given as _w_ and _h_ as well as the diagonal length of the television _l_, return t...

mehr als ein Jahr vor

Gelöst


Determine whether the input is odd, even, or neither.
Make a function that returns ‘odd’ if the input is odd, ‘even’ if the input if even or ‘error’ if the input is neither odd nor ...

mehr als ein Jahr vor

Gelöst


Parasitic numbers
Test whether the first input x is an n-parasitic number: <http://en.wikipedia.org/wiki/Parasitic_number>. ( _n_ is the second in...

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Next Higher Power of B
|Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is greater than or equal to _n_. ...

mehr als ein Jahr vor

Gelöst


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

mehr als ein Jahr vor

Gelöst


Can the given sides form a triangle?
Can the three given sides form a triangle?

mehr als ein Jahr vor

Gelöst


select the primes of a vector
Find the prime numbers in a vector

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Multiply pi
Multiply pi with x!

mehr als ein Jahr vor

Gelöst


Diagonal Prod

mehr als ein Jahr vor

Gelöst


find the height

mehr als ein Jahr vor

Gelöst


size

mehr als ein Jahr vor

Mehr laden