Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...
4 years 前
已解决
Count me in
Count the number of occurrences of the second input in the first input
Ex.
x1 = 12344455511; x2 =2; output = 1
...
Solve the Sudoku Row
*Description*
A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...
4 years 前
已解决
Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes.
---
Logical indexing works like this.
thresh = 4...
4 years 前
已解决
Is this is a Tic Tac Toe X Win?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M.
...
4 years 前
已解决
frame of the matrix
Given the matrix M, return M without the external frame.
4 years 前
已解决
Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...
4 years 前
已解决
Sums of cubes and squares of sums
Given the positive integers 1:n, can you:
1. Compute twice the sum of the cubes of those numbers.
2. Subtract the square...
4 years 前
已解决
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...
4 years 前
已解决
Box
Give the volume of a box, x is equal to the body diagonal.
4 years 前
已解决
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 (...
4 years 前
已解决
Square
X is a number, write a code, where Y should be the square of X.