문제를 풀었습니다


Group-wise Euclidean distance
*Input*: * *x* —— An array of size *n-by-d*, where each row vector denotes a point in a d-dimensional space; * *g* —— A gro...

거의 4년 전

문제를 풀었습니다


Tic Tac Toe Solver
Create a function that checks n number of tic tac toe boards housed in a 3x3xn matrix where the x's are represented as 1's (and ...

거의 4년 전

문제를 풀었습니다


Kurosu checker
The game of Kurosu is simple. A square grid contains cells that can be filled with either a 'X' or an 'O', similarly to a tic-ta...

거의 4년 전

문제를 풀었습니다


Tic-Tac-Logic - Solution Checker
<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/tic-tac-logic/rules Tic-Tac-Logic> is a logic puzzle wherein a rectangula...

거의 4년 전

문제를 풀었습니다


Give me Hamming on five, hold the mayo
A Hamming Number is a positive number that has no prime factor greater than 5. Given a number X, determine how many Hamming num...

거의 4년 전

문제를 풀었습니다


Digit concentration in Champernowne's constant
Consider the first 50 digits of Champernowne's constant 0.12345678910111213141516171819202122232425262728293... The...

거의 4년 전

문제를 풀었습니다


Frugal number
check whether n is a frugal number * a frugal number is a natural number in a given number base that has more digits than the...

거의 4년 전

문제를 풀었습니다


The End of the World
given a date -- represent it in the Maya long count system. <https://en.wikipedia.org/wiki/Maya_calendar> <https://maya.nm...

거의 4년 전

문제를 풀었습니다


Lost days
Given two dates in a particular format, calculate the difference between them.

거의 4년 전

문제를 풀었습니다


Find the day for a date
Today's day and date will be given to you. By utilising that you need to find the day of the old date. (Date will be in DD/MM/YY...

거의 4년 전

문제를 풀었습니다


Friday the 13th
According to superstition, lots of unpleasant stuff happens on Friday the 13th, so you might like to find the next occurence of ...

거의 4년 전

문제를 풀었습니다


Days until next NewYear ball drop
Given a date string in the form 'yyyy-mm-dd' or 'yyyy-mm-dd hh:mm:ss', calculate the number of *days* until the dropping of the ...

거의 4년 전

문제를 풀었습니다


How long until the weekend?
Write a function a that takes a date vector as an input and returns the number of hours until the weekend begins. The beginning...

거의 4년 전

문제를 풀었습니다


leap year
find the number of leap years within the given time interval

거의 4년 전

문제를 풀었습니다


Is this date a palindrome?emordnilap a etad siht sI
Take a MATLAB date number as input, and return true if the date is a palindrome, false if the date is not a palindrome. A date ...

거의 4년 전

문제를 풀었습니다


Tax Season ! How much is my salary?
Tax Season! I was employed for a period from x until y in a year and I get pay check of amount z on every alternate Friday of th...

거의 4년 전

문제를 풀었습니다


Create a Cell array of month-end date strings within a date range
This is a variation of <http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range Get...

거의 4년 전

문제를 풀었습니다


birthday on same day of week
Say, Mr. X's birthday is on 20th July, 2014. It was Sunday. Determine the closest year when his birthday will again be on Sunday...

거의 4년 전

문제를 풀었습니다


Find my birthday
Given a birth date x, find my age when my birth day will fall on the same day as I was born. So if I was born on Monday, what a...

거의 4년 전

문제를 풀었습니다


weekday and month
Given a year and a weekday, determine how many months of that year had five of those weekdays. It is kind of easy to find. Ex...

거의 4년 전

문제를 풀었습니다


Get an array of month-ends in a date range
Create a function that would return a list of month-ends falling in a given date range. If a start date or end date falls on a...

거의 4년 전

문제를 풀었습니다


Number of o rderd pairs of integers (I,J) that can be formed.
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the condit...

거의 4년 전

문제를 풀었습니다


Ordered pairs of integers (I, J).
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the conditi...

거의 4년 전

문제를 풀었습니다


Four digit number ABCD reversal
write a MATLAB function to find the four-digit number ABCD when multiplied by 4 returns DCBA. The function takes an input x=4.

거의 4년 전

문제를 풀었습니다


Last Digit of fibonacci number

거의 4년 전

문제를 풀었습니다


ZigZag - 01
Given a matrix, return the elements that are on the Z form of the matrix. For example - a=[1,2,3; 4,5,6; 7,8,9] ...

거의 4년 전

문제를 풀었습니다


ZigZag - 05
Given a matrix, print all its elements in the alpha form. For example - a=[16 2 3 13 5 11 10 8 ...

거의 4년 전

문제를 풀었습니다


Capitalize
Capitalize the 1st letter of each input. Other letters should be lowercase. For example - a='alphaS' >> 'Alphas' a='1...

거의 4년 전

문제를 풀었습니다


Count the days
Count the occurrence of a particular day (e.g. Monday) in a given year.

거의 4년 전

문제를 풀었습니다


No of squares in a grid
given a m*n grid calculate the no of possible squares & rectangles on that grid. output: y=[no of rectangles , no of sqa...

거의 4년 전

더 보기