Community Profile

# Brian

Last seen: 1년 초과 전 2019년부터 활동

배지 보기

#### Content Feed

보기 기준

문제를 풀었습니다

Formatting currency numbers
Given a number, format it properly for textual display using the notation \$xxx,xxx,xxx.xx. Assume that no more than two digits ...

대략 3년 전

문제를 풀었습니다

Pig Latin to English Translator
Pig latin is a faux-language based off of English. The rules are as follows (excerpted from the <http://en.wikipedia.org/wiki/Pi...

대략 3년 전

문제를 풀었습니다

English to Pig Latin Translator
Pig latin is a faux-language based off of English. The rules are as follows (excerpted from the wikipedia entry for Pig Latin): ...

대략 3년 전

문제를 풀었습니다

Use of regexp
Given a string, containing several sentences, such as: 'I played piano. John played football. Anita went home. Are you safe?...

대략 3년 전

문제를 풀었습니다

Transposition as a CIPHER
This all about transcripting a text message. If the input string is: *s1 = 'My name is Sourav Mondal'*, then the output is: *s2...

대략 3년 전

문제를 풀었습니다

String substitution, sub problem to cryptoMath
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

대략 3년 전

문제를 풀었습니다

Convert a structure into a string
Convert the contents of each fields into a string. Example with an input structure s with 2 fields : s.age = '33' s....

대략 3년 전

문제를 풀었습니다

QWERTY Shift Encoder
Encode a string using the QWERTY shift code. This code is where you touch type but are offset by one character to the right. ...

대략 3년 전

문제를 풀었습니다

QWERTY Shift Code Decoder
Decode a string encoded using the QWERTY shift code. QWERTY shift code is where the message was touch typed but with an offse...

대략 3년 전

문제를 풀었습니다

Find mistyped words in text (mixed-up letters)
Mistyped words are a regular occurrence in emails, texts, status updates, and the like. Many times, people send or post a second...

대략 3년 전

문제를 풀었습니다

Calculate the Hamming distance between two strings
Inspired by a similar Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-dist...

대략 3년 전

문제를 풀었습니다

Calculate a modified Levenshtein distance between two strings
Inspired by the Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-distance-b...

대략 3년 전

문제를 풀었습니다

Suppress the French accent. Example 'Déjà présent' -> 'Deja present'

대략 3년 전

문제를 풀었습니다

Big numbers, repeated least significant digits
This problem builds off of <http://www.mathworks.com/matlabcentral/cody/problems/3077-big-numbers-least-significant-digits/ Prob...

대략 3년 전

문제를 풀었습니다

Big numbers, least significant digits
Given two numbers, x and n, return the last d digits of the number that is calculated by x^n. In all cases, d will be the number...

대략 3년 전

문제를 풀었습니다

With apologies to William Blake
Coder Coder, typing fast Sitting at your desk, aghast. What immortal MATLAB script will solve this problem, nice and qu...

대략 3년 전

문제를 풀었습니다

Evened up (or not)
You will be provided with an array or matrix that contains various numbers, in addition to an evening variable, e, set to 1 or 0...

대략 3년 전

문제를 풀었습니다

Digital Neighbourhood
Given a natural number reorder its digits to create another number, closest to the given one. Examples: * 123 gives 132, ...

대략 3년 전

문제를 풀었습니다

Binary Neighbourhood
Given a natural number reorder its binary form to create another number, closest to the given one. Examples: * 1 gives 2, ...

대략 3년 전

문제를 풀었습니다

Convert to Binary Coded Decimal
Convert from decimal representation to <http://en.wikipedia.org/wiki/Binary-coded_decimal Binary Code Decimal> (or BCD) represen...

대략 3년 전

문제를 풀었습니다

Find out the Gray Code for a Given Binary Number
Find out <http://en.wikipedia.org/wiki/Gray_code Gray Code> for a given binary number Example Binary input 1000 Gray ...

대략 3년 전

문제를 풀었습니다

De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

대략 3년 전

문제를 풀었습니다

Consecutive Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on the largest consecutive run of ...

대략 3년 전

문제를 풀었습니다

Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

대략 3년 전

문제를 풀었습니다

Power Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that represent powers. Fo...

대략 3년 전

문제를 풀었습니다

Bit calculation
Give me the count of numbers from 1 to n having their last two bits as 0. For example function y = ret_count(4) y = x...

대략 3년 전

문제를 풀었습니다

Mysterious digits operation (easy)
What is this digit operation? 0 -> 0 1 -> 9 121 -> 9 44 -> 6 15 -> 5 1243 -> 7 ...

대략 3년 전

문제를 풀었습니다

Largest Geometric Series
Extension of Ned Gulley's wonderful <http://www.mathworks.com/matlabcentral/cody/problems/317 Problem 317>. In a geometric se...

대략 3년 전

문제를 풀었습니다

Find similar sequences
Another problem inspired by a question on the <http://www.mathworks.com/matlabcentral/answers answers> forum. Given a matrix ...

대략 3년 전

문제를 풀었습니다

Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

대략 3년 전