Feeds
已解决
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
1 year 前
已解决
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...
4 years 前
已解决
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
4 years 前
已解决
Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').
6 years 前
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
6 years 前
提问
How can i speed up the following for loop?
Hi everyone, I have a large .bin file. I read the .bin file and swap the bytes by modulo 4 and write to txt file. For example ...
6 years 前 | 1 个回答 | 0
1
个回答提问
How to get double array from string
Hi everyone, I have a edit box in which I want to enter an array like 1:5 or [1,2,3,5] or [1,2,3:6,9,12:15] . Since ...
6 years 前 | 1 个回答 | 0
1
个回答已解决
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
6 years 前
已解决
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
6 years 前


