Feeds
문제를 풀었습니다
Piecewise linear interpolation
Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...
대략 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시간 전
문제를 풀었습니다
Find the next Fibonacci number
In the sequence of Fibonacci numbers, every number is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...
대략 3시간 전
문제를 풀었습니다
Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...
대략 3시간 전
문제를 풀었습니다
Valid Chess Moves
Using standard Algebraic notation ('' for a pawn), given previous move and a next move, output true if it is a valid move or fal...
대략 3시간 전
문제를 풀었습니다
Identify Reachable Points
Given a vector of 2-D Points and a vector of 2-D Deltas create an array of all Locations that can be reached from the points usi...
대략 3시간 전
문제를 풀었습니다
Wheat on a chessboard pt 2
If a chessboard were to have wheat placed upon each square such that x grains were placed on the first square and each successiv...
대략 4시간 전
문제를 풀었습니다
Wheat on a chessboard pt 1
If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...
대략 4시간 전
문제를 풀었습니다
N-Queens Checker
Picture a chessboard populated with a number of queens (i.e. pieces that can move like a queen in chess). The board is a matrix,...
대략 4시간 전
문제를 풀었습니다
Eight Queens Solution Checker
Write a function to verify whether an arrangement of queens on a chessboard is a valid solution to the classic eight queens prob...
대략 4시간 전
문제를 풀었습니다
hanoi towers II
with 3 rods (1,2 & 3), the goal is to move a tower of n disks from rod #1 to rod #3. You can move disks only one by one, on the...
대략 4시간 전
문제를 풀었습니다
Pumpkin Pie!
It's time for desert at Thanksgiving. You've all gathered at grandma's house, and she's about to start cutting the pumpkin pie. ...
대략 4시간 전
문제를 풀었습니다
The Tower of Hanoi
In the <http://en.wikipedia.org/wiki/Tower_of_Hanoi Tower of Hanoi problem> with 3 rods (1, 2 & 3), the goal is to move a tower ...
대략 4시간 전
문제를 풀었습니다
Power Outages Histogram
Create a function that takes power outage data as an input and creates a histogram of the number of outages as a function of Reg...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: Knight Moves?
Original creator of the problem: Asif Newaz One of my favorite games are chess. Let’s do something with chess. If you don’t kno...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: Replace Negatives with Zero
Write a MATLAB function that takes a numeric array (vector or matrix) of numbers and replaces all negative numbers with zero. Po...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: Count the Evens
Write a MATLAB function that accepts an array of integers and returns the total count of even numbers present in the array. Note...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: Multinacci Sequence Generator
Create a function that generates a sequence of length n based on the sum of the previous l terms. If l = 2, it acts like the Fi...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: Lucas Sequence
The Lucas sequence follows the same additive rule as Fibonacci, but starts with 2 and 1. Sequence: 2, 1, 3, 4, 7, 11, 18, 29, 47...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: Tribonacci Sequence
Each number in the Tribonacci series is the sum of the three preceding ones. Sequence: 0, 0, 1, 1, 2, 4, 7, 13, 24, 44, ... Writ...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: Fibonacci Sequence
The Fibonacci sequence is defined by the rule that each number is the sum of the two preceding ones. Sequence: 0, 1, 1, 2, 3, 5,...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: List Manipulation: Add and Remove
Create a MATLAB function that performs dynamic list operations on a cell array of strings. The function should accept the curren...
대략 4시간 전
문제를 풀었습니다
MATLAB 101: Conditional Product or Sum Calculator
Write a MATLAB function that accepts two integer numbers. If the product of the two numbers is less than or equal to 1000, retur...
8일 전
문제를 풀었습니다
MATLAB 101: University Department Data Analyzer
You are given an array containing the number of students in various academic departments of a university, along with a parallel ...
8일 전
문제를 풀었습니다
MATLAB 101: Extracting Even/Odd Values
Given an array or a matrix, extract all elements that satisfy a specified parity condition ('even' or 'odd') and return them as ...
8일 전
문제를 풀었습니다
MATLAB 101: Student Marks Analyzer
An array is given that contains the marks received by a group of students in their class test. Write a function that processes t...
8일 전
문제를 풀었습니다
MATLAB 101: Extract the prime numbers
Given a list of elements, extract the prime numbers from that array.
8일 전
문제를 풀었습니다
MATLAB 101: Armstrong Number
Write a function name armstrong_check that checks whether the given input is an Armstrong Number or not. It returns logical True...
8일 전
문제를 풀었습니다
MATLAB 101: Find alternating sum
Given an array, find alternating sum i.e. – y = x (1) – x (2) + x (3) – x (4) + x (5) - …
8일 전
문제를 풀었습니다
MATLAB 101: Given a matrix X, manipulate it accordingly
Given a matrix X, 1st add a column to the matrix whose elements are the summation of each rows. Then add a row to the matrix who...
8일 전


