James Best
自2018年以来活跃
内容提要
问题
MATLAB系列到MIDI Communication Win7与Win10
I am communicating from MATLAB to a MIDI interface using com0com to create a virtual serial port, and then using Hairless MIDI a...
3年前|0答案|0
0
答案Solved
斐波那契序列
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
3年前
Solved
Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...
3年前
Solved
"Look and say" sequence
What's the next number in this sequence? * [0] * [1 0] * [1 1 1 0] * [3 1 1 0] * [1 3 2 1 1 0] This a variant on the w...
3年前
Solved
方数字数链终端值(受项目Euler问题的启发92)
Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...
3年前
Solved
类似的三角形 - 找到树的高度
Given the height, h1, of a power pole, shorter than a tree, a given distance, x2 away, please find h2, height of the tree. Pleas...
3年前
Solved
界定的圆圈
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5
3年前
Solved
Euler项目:问题6,自然数,正方形和总和。
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...
3年前
Solved
制作棋盘矩阵
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
3年前
Solved
Find all elements less than 0 or greater than 10 and replace them with NaN
给定输入向量X,查找X的所有元素小于0或大于10,然后用NAN代替它们。示例:输入...
3年前
Solved
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...
3年前
Solved
Are all the three given point in the same line?
在此问题中,输入是xy平面中三个点的坐标吗?P1(X1,Y1)P2(X2,Y2)P3(X3,Y3)如何...
3年前
Solved
Calculate the area of a triangle between three points
计算三角形的面积在三个点之间:p1(x1,y1)p2(x2,y2)p3(x3,y3)这三个点是vert ...
3年前
Solved
这三角形是正确的吗?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...
3年前