문제를 풀었습니다


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

4년 초과 전

문제를 풀었습니다


Return strings encapsulated by braces
Return all substrings that are contained within braces ({}). For example: str = 'x = rho*x{-1} + (1-rho)*y{+1}'; when...

4년 초과 전

문제를 풀었습니다


Send vector into a struct object
Construct a struct object that contains n fields named a1, a2, ..., an, and has values from a given input vector of length n.

4년 초과 전

문제를 풀었습니다


struct2values()
Convert a struct object into a column vector. You can assume that the struct elements are scalars Example: a = struct();...

4년 초과 전

문제를 풀었습니다


Leading-zero padding
Write a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum nu...

4년 초과 전

문제를 풀었습니다


Pairwise column flip
Given matrix *M_in*, flip every pair of columns. So if *M_in* is 1 2 3 4 1 2 3 4 then *M_out* is 2 1 4 3 2 1 4 3 ...

4년 초과 전

문제를 풀었습니다


Create a New_Word
The output of the function is a new word created from the word entered into the function. The new word is created by deleting th...

4년 초과 전

문제를 풀었습니다


Multiply Column
Given two input, one matrix and one scalar number For example A is a matrix given A = [ 1 2 2 5 2 5 2 3 4 6...

4년 초과 전

문제를 풀었습니다


Matrix to 3-Column Matrix
Consider a matrix *A* such as A = [1 2 3 3 4 5 6; 2 3 4 5 6 7 8]; Can you convert this matrix to a three-column ...

4년 초과 전

문제를 풀었습니다


4 Digit Sequence Repetitions
Given a 4 digit integer, a sequence can be created such that the next digit in the sequence is the ones digit from the sum of th...

4년 초과 전

문제를 풀었습니다


Repeat Vector Values an Arbitrary Number of Times
Given two vectors of the same size, repeat the values of the first vector the number of times given in a second vector. For exam...

4년 초과 전

문제를 풀었습니다


Divide the Least Common Multiple by the Greatest Common Divisor of two numbers
Divide the Least Common Multiple by the Greatest Common Divisor of two numbers. For example, for x=12345 and y=54321, the answer...

4년 초과 전

문제를 풀었습니다


sort matrix
Given a matrix, sort it for each column, but cannot change the element of each row. for example input = [1 3; 2 4;1 5;3 6]; ...

4년 초과 전

문제를 풀었습니다


Binary code for an analog signal
Digitization of a signal consists of 3 stages: sampling, quantization and encoding. Sampling convert the analogue signal into...

4년 초과 전

문제를 풀었습니다


Find the quantization index of an analog value using a 6-bit quantizer.
Given a sinusoidal waveform x(t)=4.5*sin(2*pi*100*t) is sampled at 8000 sample per second. Assume that signal range is between -...

4년 초과 전

문제를 풀었습니다


Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

4년 초과 전

문제를 풀었습니다


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

4년 초과 전

문제를 풀었습니다


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

4년 초과 전

문제를 풀었습니다


Get chain of consecutive characters
Write a function that will output a chain of consecutive characters, given 2 letters as input. It has to work backwards too. Exa...

4년 초과 전

문제를 풀었습니다


Matrix Manipulation
Given an m*n matrix, see if a matrix contains any 0s in any row. if it contains 0 anywhere in any particular row, delete that ro...

4년 초과 전

문제를 풀었습니다


Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...

4년 초과 전

문제를 풀었습니다


Pascal's triangle
<https://en.wikipedia.org/wiki/Pascal%27s_triangle> if the order is: x = 3; the output will be: output = [0 0 0 1 0 0 ...

4년 초과 전

문제를 풀었습니다


Write a function to calculate step size delta if bits per sample and input range is given for quantization.
numBit = bits per sample; range = input max value - min value; delta = step size; l = number of levels;

4년 초과 전

문제를 풀었습니다


Brain Teaser Solver
Write an algorithm to solve this brain teaser: You have a square that is broken into four triangles, the area of three of tho...

4년 초과 전

문제를 풀었습니다


adding huge numbers
Write function called huge_add that adds together two positive integers of any length specified as char vectors using decimal n...

4년 초과 전

제출됨


Game-2048-AI-Solver
Implementation of Game 2048 with an Artificial Intelligence Solver written in JAVA.

4년 초과 전 | 다운로드 수: 1 |

문제를 풀었습니다


Fill the matrix - 1
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the s...

4년 초과 전

문제를 풀었습니다


Fill the Matrix - 2
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the me...

4년 초과 전

문제를 풀었습니다


Airline Ticket Mod7 Checksum
There are 13 digits in an airline ticket number. If an airline ticket number is valid, the 13th digit should be the remainder of...

4년 초과 전

문제를 풀었습니다


Unusual Concatenations
The sum of the squares of certain unusual integers is equal to the concatenation of their individual digits. For example: ...

4년 초과 전

더 보기