Determine given vector is even or odd
Find the numbers of the input vector is odd or even then replace even with 1 and odd with 0
Example
x = [ 3 3 4 6 1]
...
Let's make puddings !
We will make puddings with eggs, milk and sugar.
To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar.
Now W...
what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example
x = 70000;
i=.10
y_correc...
約8年 前
解決済み
short or buy ? take the opportunity
you had already calculated a theoretical stock value, now you checked in bloomberg the quoted price of that stock and you have t...
約8年 前
解決済み
currency converter
given a rate of exchange calculate the equivalent units of 100 USD
英語の文章内の母音を取り除くコードを書きましょう。
与えられた英語の文章内の母音を取り除きましょう。
例:
入力 s1 が 'Jack and Jill went up the hill' の場合、
出力 s2 は 'Jck nd Jll wnt p th hll'
* (英語版) ...
約8年 前
解決済み
Sum of adjacent elements in a vector
Given a vector v, return a vector s containting the sum of every two adjacent elements in the vector.
Every element s(i) cont...