문제를 풀었습니다


Extract diagonal of sparse quadratic form
Consider the matrix A and vector v given by, A=round(sprand(5e3,1e4,1/1e4*100)*100); v=randi(10,width(A),1); Write a rout...

대략 2개월 전

문제를 풀었습니다


2x2 binning of a large sparse matrix
Consider the 20000 x 20000 sparse matrix, A=round(sprand(2e4,2e4,1/1e4*100)*1000); The task is to divide this matrix into 2x...

대략 2개월 전

문제를 풀었습니다


Condition number of Kronecker product
Given NxN matrix A and MxM matrix B, where M,N<=1000, write a routine to compute the condition number of kron(A,B).

대략 2개월 전

문제를 풀었습니다


Build a block Toeplitz matrix
A symmetric block Toeplitz matrix has the form, where the are compatibly-sized matrices. Write a routi...

대략 2개월 전

문제를 풀었습니다


Pairs with Given Sum
Given an array of integers and a target sum, return all unique pairs whose sum is equal to the target. The output should be a ma...

대략 2개월 전

문제를 풀었습니다


Connect Four - 02
Previous Problem <https://www.mathworks.com/matlabcentral/cody/problems/45354-connect-four-01> In addition to previous proble...

대략 2개월 전

문제를 풀었습니다


Seconds
Given the number of seconds after 12 am, find the time in the given format (12/24). If the format is not mentioned, use 24-hour...

대략 2개월 전

문제를 풀었습니다


Dominant Matrix - 02
It is a follow-up of the problem 55995. There, you found out whether a matrix is diagonally dominant or not. In this problem, y...

대략 2개월 전

문제를 풀었습니다


Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.

대략 2개월 전

문제를 풀었습니다


Symmetric Pair
Given an (n, 2) matrix, remove any symmetric pairs from the matrix. Keep the first occurrence. (2, 3) and (3, 2) are considere...

대략 2개월 전

문제를 풀었습니다


'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...

대략 2개월 전

문제를 풀었습니다


Last Duplicate
Given an array of integers, find the last duplicate element — that is, the element whose second occurrence appears latest in the...

대략 2개월 전

문제를 풀었습니다


First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...

대략 2개월 전

문제를 풀었습니다


The Case of the Missing Prototype – Identify the Thief by Comparing Suspects’ Evidence and Alibi Scores
After gathering fingerprints, alibis, sensor data, and digital clues, it’s time to pinpoint the thief. You have a struct array ...

대략 2개월 전

문제를 풀었습니다


Convert Decimal to Hexavigesimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

대략 2개월 전

문제를 풀었습니다


Popular Word Game™ Distance
Professor Ned, who holds the Nedowed Chair of Crackpot Mathematics at the University of Nedsburg, has recently discovered the da...

대략 2개월 전

문제를 풀었습니다


Leaderboard for the Nedball World Cup
At the upcoming inaugural Nedball World Cup, organizers need to track who is in the lead for the coveted Golden Toeplitz trophy,...

대략 2개월 전

문제를 풀었습니다


Government of the Neds, by the Neds, for the Neds - Distribute the Nedsburg City Councilors
The city of Nedsburg consists of several islands, the number of which changes regularly, due to tectonic forces, shoddy civil en...

대략 2개월 전

문제를 풀었습니다


A Nedlish Country Garden - Check for Valid Arrangement
Nedland is famous for its stately gardens, which typically have a centerpiece of a square grid, with certain squares featuring a...

대략 2개월 전

문제를 풀었습니다


Convert Hexavigesimal to Decimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

대략 2개월 전

문제를 풀었습니다


Determine whether a number is a Gaussian prime
A Gaussian prime is a number that cannot be factored. For example, is not a Gaussian prime because it can be factored as the p...

대략 2개월 전

문제를 풀었습니다


Mesh the square with triangles
Problem statement An square is a regular polygon with 4 vertices and 4 edges. A triangulated mesh T (stands for triangles he...

대략 2개월 전

문제를 풀었습니다


The Case of the Missing Prototype – Extract the Culprit’s Name from a Mixed Letter-and-Number Email Message
While tracing the suspect’s digital footprint, you recover an email containing a mixed string of letters and numbers.The letters...

대략 2개월 전

문제를 풀었습니다


FEN Chess Notation
Given an 8-by-8 character matrix representing a chess board, convert it to FEN (Forsyth-Edwards Notation) board position format....

대략 2개월 전

문제를 풀었습니다


Determine when iterations of phi(psi(x)) repeat
Cody Problem 656 introduced the Euler totient function , which counts the number of integers smaller than that are relatively...

대략 2개월 전

문제를 풀었습니다


The Case of the Missing Prototype – Check the Lab’s Logbook for Suspicious Late-Night Entries
After counting the fingerprints, you turn your attention to the security logbook.It records the entry hours (from 0 to 23) of ev...

대략 2개월 전

문제를 풀었습니다


The Case of the Missing Prototype - Count the Fingerprints Found at the Lab Door to Begin Your Investigation
You arrive at the Innovation Lab where the secret prototype was stolen. The door has been dusted for fingerprints, and a technic...

대략 2개월 전

문제를 풀었습니다


The MATLAB Treasure Hunt – Locate the Hidden Treasure in the Chamber of Coordinates
Inside the Chamber of Coordinates, glowing runes show several coordinate points on a 2D grid. The treasure lies closest to the ...

대략 2개월 전

문제를 풀었습니다


The MATLAB Treasure Hunt – Cross the River of Ratios by Finding Successive Proportions in the Data Stream
Following the glowing script, you arrive at the River of Ratios — a flowing stream of numbers. A carved message on the rocks re...

대략 2개월 전

문제를 풀었습니다


The MATLAB Treasure Hunt – Fix the Broken Compass by Normalizing Its Angle Readings
Your compass, recovered from the Hidden Cave, spins wildly! The ancient device shows angles that exceed 360° or drop below 0°. T...

대략 2개월 전

더 보기