문제를 풀었습니다


Decrypt the cypher using XOR encryption (for beginners)
Inspired by Project Euler n°59 Each character on a computer is assigned a unique code and the preferred standard is ASCII (...

11개월 전

문제를 풀었습니다


Did you say please? - Find one string within another without strfind or regexp/regexpi
For a given string sentence, determine if the string word 'please' is present or not. If so, return the string 'OK', else return...

11개월 전

문제를 풀었습니다


Concatenate string with cell array of strings
Given a cell array of strings (a), a target string (b), and a target position (ind), return a cell array of strings (c) in which...

11개월 전

문제를 풀었습니다


longest common substring : Skipped character version
Two strings are given. Find the longest common substring between them. The substring characters need not be adjacent. They, howe...

11개월 전

문제를 풀었습니다


Genome decoding
Inspired by a question on the answer forum: You are given a matrix of 8-bit integers which encodes a genome. Each integer can...

11개월 전

문제를 풀었습니다


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

11개월 전

문제를 풀었습니다


Find the longest match inside two strings
Given two strings, find the longest string which is contained within both strings. e.g. the longest string that is contained ...

11개월 전

문제를 풀었습니다


Calculate the Damerau-Levenshtein distance between two strings.
<http://www.mathworks.co.uk/matlabcentral/cody/problems/2303-compute-hamming-distances-between-each-pair-of-rows-from-two-input-...

11개월 전

문제를 풀었습니다


Broken numlock key, oppps !
The numlock key on my computer is pressed and is now broken, so I cant press it to switch off the numlock mode. And hence I am n...

12개월 전

문제를 풀었습니다


Cat, Meowcat and Concatenation
Input is a cell array containing several strings. Find the largest continuous sub-string common to all strings. All strings are ...

12개월 전

문제를 풀었습니다


longest common semi-substring
Finding longest common substring is a common problem in string processing. This problem is a variant of that. Two strings are g...

12개월 전

문제를 풀었습니다


Reverse within string
If input is a string 'yellow' the output should be 'leywol'. Locate the middle of the string and reverse the first (yel) and sec...

12개월 전

문제를 풀었습니다


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

12개월 전

문제를 풀었습니다


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

12개월 전

문제를 풀었습니다


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

12개월 전

문제를 풀었습니다


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

12개월 전

문제를 풀었습니다


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

12개월 전

문제를 풀었습니다


Matrix Pattern 10

12개월 전

문제를 풀었습니다


Matrix Pattern 9

12개월 전

문제를 풀었습니다


Matrix Pattern 8

12개월 전

문제를 풀었습니다


Matrix Pattern 7

12개월 전

문제를 풀었습니다


Matrix Pattern 6

12개월 전

문제를 풀었습니다


Matrix Pattern 5

12개월 전

문제를 풀었습니다


Matrix Pattern 4

12개월 전

문제를 풀었습니다


Matrix Pattern 3

12개월 전

문제를 풀었습니다


Matrix Pattern 2

12개월 전

문제를 풀었습니다


Matrix Pattern 1

12개월 전

문제를 풀었습니다


How Far Can You Throw Something?
As you probably learned in your high school physics class, throwing an object at a 45 degree angle will give you the maximum ran...

12개월 전

문제를 풀었습니다


Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

12개월 전

문제를 풀었습니다


Distance of the centroids of the balls
Given *n* balls of radius *r* and the vector *p (nx3)* with all position *(x,y,z)* of the balls, return the symmetric matrix *A ...

12개월 전

더 보기