Feeds
문제를 풀었습니다
Robust Corner Product with Special Value Handling in Arrays
Compute the product of the corner elements of an array (vector or matrix). If any corner element is NaN, return NaN. If any co...
1일 전
문제를 풀었습니다
Robust Corner Sum with Special Value Handling in Arrays
Compute the sum of the corner elements of an array (vector or matrix). If any corner element is NaN, return NaN. If any corner...
5일 전
문제를 풀었습니다
Problem: Battery State Estimation with Temperature Effect
In a Battery Management System (BMS), the usable capacity of a battery decreases when operating at extreme temperatures. The ef...
5일 전
문제를 풀었습니다
Double the 2x2 Matrix
In this challenge, you are given a predefined 2x2 matrix called x. Your task is to multiply every element in this matrix by 2 an...
27일 전
문제를 풀었습니다
Legendary NBA Playmaker
Write a function that returns a char array containing the name and surname of a famous NBA player known for his spectacular pass...
30일 전
문제를 풀었습니다
Difference of product and sum
Given a positive integer n, compute the difference between the product of its digits and the sum of its digits.
대략 1개월 전
문제를 풀었습니다
The Quantum Knight's Tour on a Toroidal Hexagonal Board
In this challenge, you must navigate a knight on a Toroidal Hexagonal Grid of size The grid: We use the Axial Coordinate Syst...
대략 1개월 전
문제를 풀었습니다
Return the product of all elements of a vector or matrix without using built-in functions
Compute the product of all elements of the input array without using the built-in functions prod, ans, or size.
대략 1개월 전
문제를 풀었습니다
Find the nearest admirable number
Cody Problems 1012 and 2544 ask us to determine whether a number is perfect—that is, whether the sum of divisors is equal to ....
대략 1개월 전
문제를 풀었습니다
Turn year differences into "s score and y years ago"
President Lincoln opened his now-legendary Gettysburg Address with the famous words "Four score and seven years ago...". Given t...
대략 1개월 전
문제를 풀었습니다
Play Oware with the digits of a number
Oware is a pit and pebble game that consists of two sets of pits or houses filled with pebbles or seeds. During a turn, a player...
대략 2개월 전
문제를 풀었습니다
Sum all elements of a vector or matrix without using some built in functions
Write a function that computes the sum of all elements of the input array v without using the following built-in function: sum,...
대략 2개월 전
문제를 풀었습니다
Compute the Euclidean Distance Between Two N-Dimensional Vectors
Write a function that computes the Euclidean distance between two N-dimensional vectors. Given two input vectors x and z of equ...
대략 2개월 전
문제를 풀었습니다
Determine Matrix Dimensions Without Using some built-in MATLAB functions, version 2
Write a function that takes a 2D matrix/1D vector x as input and returns a row vector containing the number of rows and the numb...
대략 2개월 전
문제를 풀었습니다
Sum all elements of a vector or matrix without using sum()
Write a function that computes the sum of all elements of the input array v without using the built-in sum function. The input ...
대략 2개월 전
문제를 풀었습니다
Determine Matrix Dimensions Without Using some built-in MATLAB functions
Write a function that takes a 2D matrix/1D vector x as input and returns a row vector containing the number of rows and the numb...
대략 2개월 전
문제를 풀었습니다
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...
대략 2개월 전
문제를 풀었습니다
[Master Regular Expression] Validate IP Address
Given a string queryIP, return "IPv4" if IP is a valid IPv4 address, "IPv6" if IP is a valid IPv6 address or "Neither" if IP is ...
2개월 전
문제를 풀었습니다
[Master Regular Expression] Strong Password Checker II
A password is said to be strong if it satisfies all the following criteria: It has at least 8 characters. It contains at l...
2개월 전
문제를 풀었습니다
[Master Regular Expression] Vowel-Consonant Score
You are given a string s consisting of lowercase English letters, spaces, and digits. Let v be the number of vowels in s and c ...
2개월 전
문제를 풀었습니다
[Master Regular Expression] Largest Substring Between Two Equal Character
Given a string s, return the length of the longest substring between two equal characters, excluding the two characters. If ther...
2개월 전
문제를 풀었습니다
[Master Regular Expression] String Matching in an Array
Given an array of string words, return all strings in words that are a substring of another word. You can return the answer in a...
2개월 전
문제를 풀었습니다
The Ultimate Water Challenge ( Expert )
Description: In the previous problems, you were given a target T and asked to find the minimum number of steps to reach it. ...
2개월 전
문제를 풀었습니다
Record the Actions ( Medium )
Find the minimum steps to get T units from jugs A and B. Return the sequence of actions as cell array of strings. Available act...
2개월 전
문제를 풀었습니다
The Generalized N-Jug Water Pouring Problem ( Hard )
Description: You are given N water jugs with maximum capacities specified in a vector C = [ c1, c2, c3,.., c_n]. Initially, all...
2개월 전
문제를 풀었습니다
Weighted Costs ( Hard )
Different actions have different monetary costs: Fill = $10 , Empty = $5 , Pour = $1 #Note: It's just an example Find the mini...
2개월 전
문제를 풀었습니다
Minimal Waste Pouring ( Hard )
Everytime you perform Empty action, water is wasted. Instead of minimizing steps, find the path that minimizes the total volume ...
2개월 전
문제를 풀었습니다
The Broken Jug: Constrain ( Hard )
One of your jugs is "broken": it can not be Emptied to the drain. It can only be Filled or Poured to another jug. Input: C, T, ...
2개월 전
문제를 풀었습니다
The Classic 8-5-3 Sharing ( Medium )
You have 3 jugs with capacities [8,5,3]. The 8L jug, the others are empty: [8,0,0]. There is no tap and no drain. You can only p...
2개월 전
문제를 풀었습니다
Total Volume Goal ( Medium )
Usually, the target T must be in one jug. In this version, the target T is the sum of water in all N jugs. Example: C = [3,5], ...
2개월 전











