Feeds
문제를 풀었습니다
Convert Celsius temperature to Fahrenheit
Given a temperature in Celsius, return the equivalent in Fahrenheit. Formula: F = C * 9/5 + 32Example: cel2fahr(100) returns 212...
1일 전
문제를 풀었습니다
Find the Longest Consecutive Increasing Path in a Matrix
Given a 2D matrix of integers, find the length of the longest path where each step moves to an adjacent cell (up, down, left, ri...
1일 전
문제를 풀었습니다
Web App POST using system curl (405 error fix)
This challenge is to create a curl command to interact with a Google Web App that takes a JSON input and returns the JSON and a ...
1일 전
문제를 풀었습니다
Triangle Area Using Heron's Formula
Given the three side lengths a, b, and c of a triangle, calculate its area using Heron's formula and round to 4 decimal places. ...
1일 전
문제를 풀었습니다
Count the vowels in a string
Given a string, return the number of vowels (a, e, i, o, u — case insensitive). Example: count_vowels('Hello World') returns 3
1일 전
문제를 풀었습니다
Replace All Below-Average Elements in a Matrix with Zero
Given a 2D matrix of numbers, find the mean of all elements. Replace any element that is strictly below the mean with 0. Return ...
1일 전
문제를 풀었습니다
Keep Only Even Numbers
Given a vector, return a new vector containing only the even numbers in their original order. Example: keep_evens([1 2 3 4 5 6])...
1일 전
문제를 풀었습니다
Reverse the characters of a string
Given a string, return the string with characters in reverse order. Example: rev_string('hello') returns 'olleh'
2일 전
문제를 풀었습니다
Sum the main diagonal of a matrix
Given a square matrix, return the sum of its main diagonal elements. Example: diag_sum([1 2 3; 4 5 6; 7 8 9]) returns 15
2일 전
문제를 풀었습니다
Determine if a number is prime
Given a positive integer n, return 1 if it is prime, 0 otherwise. Example: is_prime(7) returns 1, is_prime(4) returns 0
2일 전
문제를 풀었습니다
Count how many elements are above the mean
Given a vector, return the count of elements strictly greater than the mean of the vector. Example: above_mean_count([1 2 3 4 5]...
2일 전
문제를 풀었습니다
Move Array Element by Offset with Optional Ring Mode
Move Element by Offset Write a function moveab(x, A, B, option) that moves the element at index A in array x by B positions. P...
2일 전
문제를 풀었습니다
The Optimal 2D Guillotine Cutting Stock Problem
You are working in a factory that produces rectangular glass sheets. You have a large stock plate of size W x H. Customers have ...
6일 전
문제를 풀었습니다
Create array of all Distances between two Sets of Points
This Challenge is a subsection of Martian Pranks based on Tim's efficient Distance calculation between sets of points. Given Po...
8일 전
문제를 풀었습니다
Form Blocks in a 1D array
Lets say I have an array of size (10,1); I want to divide it into the num number of blocks which are given by user no_of_b...
8일 전
문제를 풀었습니다
Robust Main Diagonal Sum with Special Value Handling in Arrays
Compute the sum of the diagonal elements of an array (vector or matrix). If array is not square return the char array: 'no-squa...
8일 전
문제
Robust Main Diagonal Sum with Special Value Handling in Arrays
Compute the sum of the diagonal elements of an array (vector or matrix). If array is not square return the char array: 'no-squa...
8일 전 | 0 | 솔버 수: 5
문제를 풀었습니다
Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...
9일 전
문제를 풀었습니다
DNA N-Gram Distribution
Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...
9일 전
문제를 풀었습니다
Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...
9일 전
문제를 풀었습니다
Subset Sum
Given a vector v of integers and an integer n, return the the indices of v (as a row vector in ascending order) that sum to n. I...
9일 전
문제를 풀었습니다
Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...
9일 전
문제를 풀었습니다
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
9일 전
문제를 풀었습니다
Orthogonalize 3 column vectors using the Gram-Schmidt process
Use the Gram-Schmidt process to orthogonalize three linearly independent column vectors. Return three output column vectors that...
9일 전
문제를 풀었습니다
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).
9일 전
문제를 풀었습니다
Determine Matrix Dimensions Without Using size or length
Write a function that takes a matrix A as input and returns a row vector containing the number of rows and the number of columns...
9일 전
문제를 풀었습니다
Find the closest e-abundant numbers
An abundant number is an integer whose sum of its positive proper divisors—or the sum of its divisors excluding itself—exceeds ...
9일 전
문제를 풀었습니다
Get factory-defined property values
Given a property name (e.g. 'AxesUnits', 'LineMarkerSize', 'UicontrolBackgroundColor'), return the factory-defined value for tha...
10일 전











