統計
All
Feeds
解決済み
Find the next state of a JK Flip-Flop
Find the next state (NS) of a JK Flip-Flop based on previous state (PS), inputs. Learn more about JK Flip-Flop theory here: ...
約3年 前
解決済み
Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...
約3年 前
解決済み
Given A4 sizes find A3's long side
I think you know the relation between A3 and A4 paper so givens are sides of A4 x1=long side of A4 y1=short side of A4 y2 is ...
約3年 前
解決済み
Convert Angstrom to Meters
Write a code that converts the angstrom unit to meters.(A is angstrom and m is meters.)
約3年 前
解決済み
Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7
3年以上 前
解決済み
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...
5年以上 前
解決済み
Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...
5年以上 前
解決済み
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...
約7年 前
解決済み
Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector
約7年 前
解決済み
determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.
8年弱 前
解決済み
Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.
8年弱 前
解決済み
Cookie Cutters
Given a larger and smaller matrix, perform element-by-element multiplication on the smaller matrix and a sub-matrix of the large...
8年弱 前
解決済み
0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...
8年弱 前
解決済み
Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...
8年弱 前
解決済み
Change input vector
If a input vector is [3, 2, 6, 1, 6], the output vector is [3, 2, 6, 1, 6] + [1, 2, 3, 4, 5] = [4, 4, 9, 5, 11].
8年弱 前
解決済み
basics -making a matrix
make a matrix which contains input x as the last element. the intervals should be +1 ex) input = 5 output= [0 1 2 3 4 5] ex)...
8年弱 前
解決済み
sum all the elements
sum all the elements in the matrix ex) x=[1 2 3 4; 5 6 7 8; 9 10 11 12] y=78
8年弱 前
解決済み
cheating technique1
in these cody problems, there is a way to cheat. find out how people cheat.
8年弱 前
解決済み
find a number (cheat)
find a number input^5 = input the out put should be the number. try cheating
8年弱 前
解決済み
cheating technique2
there are some ways to get hints just by looking at the test suits to cheat. try.
8年弱 前