Programming Languages:
Python
Spoken Languages:
French, Italian
Pronouns:
She/her
Python
Spoken Languages:
French, Italian
Pronouns:
She/her
Feeds
문제를 풀었습니다
First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...
6개월 전
문제를 풀었습니다
'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...
6개월 전
문제를 풀었습니다
Breaking up a chocolate bar
You've got a chocolate bar of size , and you want to break it up into bite-sized () pieces. How many steps are required to do th...
6개월 전
문제를 풀었습니다
Conditional transpose
You're given two vectors of the same length, x and y, which might be row or a column vectors. Your task is to ensure that y has ...
1년 초과 전
문제를 풀었습니다
Absolute Value of the Product of Complex Numbers
Find the absolute value (modulus) of the product of two complex numbers given by a + bi and c + di.
1년 초과 전
문제를 풀었습니다
Function minimization - beat fminbnd!
Matlab's fminbnd function finds a minimizer of a function within an interval. If often gets stuck in local minima. Can you do...
1년 초과 전
문제를 풀었습니다
How Many Months Until It's Today Again?
Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...
1년 초과 전
문제를 풀었습니다
What time can I drive after drinking?
At T o'clock, after a hard day of Matlab, I immediately start drinking and treat myself to N pints of tasty beer. Each beer I dr...
1년 초과 전
문제를 풀었습니다
What is the current time in Darwin, Australia?
Traders need to track exchange calendars and trading hours in detail, and account for time zone differences and daylight savings...
1년 초과 전
문제를 풀었습니다
Kaprekar Steps
6174 is the Kaprekar constant. All natural numbers less than 10,000 (except some with same digits) can be reduced to 6174 in the...
1년 초과 전
문제를 풀었습니다
Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...
1년 초과 전
문제를 풀었습니다
Percentage profit:4
If a shopkeeper is selling W gram of salt in 1 dollar he will face r% loss. How much salt he should sell in grams to make r% pro...
1년 초과 전
문제를 풀었습니다
Reepeating numbers in array
Repeating numbers in array In = [1 0 0 0 2 0 0 0 3 0 0 0 0 0 5 0 0 0 0]. Out = [1 1 1 1 2 2 2 2 3 3 3 3 3 3 5 5 5 5 5].
1년 초과 전
문제를 풀었습니다
Find the standard deviation of an array
given an array, find it's standard deviation without using the std() function. Use sample formula (n-1) for standard deviation a...
1년 초과 전
문제를 풀었습니다
How many palindromes?
* Given a set of letters, count all possible palindromes, using all of those letters. * For example, if the set is {'A' 'A' 'A'...
1년 초과 전
문제를 풀었습니다
Find the closest geyser prime
My wife and I celebrated our honeymoon and our recent anniversary in Yellowstone and Grand Teton National Parks. After returning...
1년 초과 전
문제를 풀었습니다
Organic Chemistry
Determine the names of the organic component formed with carbon and hydrogen. For example, if n=1 the name is methane
1년 초과 전
문제를 풀었습니다
Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...
1년 초과 전
문제를 풀었습니다
Are you more familiar with iteration methods or Linear Algebra? Let's see together.
Given a sum result *_x_* value of a *_N_* number of addends, build an array of _*N*_ elements _*y*_ such that the following equa...
1년 초과 전
문제를 풀었습니다
The Deadly Sin
Melvyn and Banner are fighting over chocolates. Melvyn has X chocolates, while Banner has Y. Whoever has a lesser number of choc...
1년 초과 전
문제를 풀었습니다
Diagonal Product of A Square Matrix
For a matrix A, calculate the product of its diagonal elements. * Assume all input matrices are square & corresponding element...
1년 초과 전
문제를 풀었습니다
Sum All Positive Elements
Output a scalar that is equal to the sum of all positive elements in a given vector/matrix. For Example: The sum of all positi...
1년 초과 전
문제를 풀었습니다
Reverse a string
Return a string with the characters in reverse order from a given input string Ex: my_str = "Ciao" function should output "...
1년 초과 전
문제를 풀었습니다
Convert RGB to Grayscale
Convert a 3 element RGB array to its correspoding grayscale pixel (a scalar) *Hint: a formula exists!
1년 초과 전
문제를 풀었습니다
Palindrome Checker
Check to see if a given string is a palindrome (a word, phrase, or sequence that reads the same backward as forward). Output sh...
1년 초과 전
문제를 풀었습니다
Alternating 1´s and 0´s in a matrix
Given an odd number n, write a function that creates a matrix y with dimension nxn alternating 1's and 0's, and starting with 1 ...
1년 초과 전
문제를 풀었습니다
Check if is a square
Given four coordinates, write a function to check if they form a square on the XY plane.
1년 초과 전











