解決済み


Concentric Squares Mandala
Generate concentric square rings of alternating 1s and 0s to form a layered mandala-style matrix. e.g. N = 5; 1 1 1 1 1;...

8ヶ月 前

解決済み


Hollow Diamond Pattern
Create an N×N matrix that forms a hollow diamond shape using 1s, leaving the interior empty. This challenge emphasizes boundary ...

8ヶ月 前

解決済み


Filled Diamond Pattern
Create an N×N binary matrix that forms a filled diamond shape centered in the matrix. The diamond expands symmetrically toward t...

8ヶ月 前

解決済み


Number of vowels in string
Write a function that counts how many vowels appear in a given string. Vowels are: a e i o u The function should be case‑insen...

8ヶ月 前

解決済み


Sum of even digits
Given a positive integer n, return the sum of all even digits in the number.

8ヶ月 前

解決済み


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.

8ヶ月 前

解決済み


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.

8ヶ月 前

問題


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

8ヶ月 前 | 0 | 7 個のソルバー

解決済み


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

8ヶ月 前

問題


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

8ヶ月 前 | 0 | 8 個のソルバー

解決済み


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

8ヶ月 前

解決済み


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

8ヶ月 前

解決済み


Velocity at Bottom Using Energy Conservation
A steel ball rolls down a precision ramp in a lab at CERN.

8ヶ月 前

解決済み


Acceleration in a Symmetric Double-Pulley Constraint System
Engineers at Indian Institute of Technology Kanpur are designing a precision counterweight system for high-speed elevators. The ...

8ヶ月 前

解決済み


Motion of a Bead Sliding on a Rotating Rod (Non-Inertial Frame Dynamics)
Scientists at Indian Space Research Organisation are testing artificial gravity inside a rotating space station module. Inside ...

8ヶ月 前

解決済み


Acceleration of Block Relative to Ground
Researchers at Indian Space Research Organisation test cargo motion inside accelerating spacecraft ramps. Find acceleration.

8ヶ月 前

解決済み


Tension in String for Circular Motion (Advanced Rotational Dynamics)
At the astronaut training facility of Indian Space Research Organisation, astronauts are trained using a rotating centrifuge. Th...

8ヶ月 前

解決済み


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

8ヶ月 前

解決済み


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

8ヶ月 前

解決済み


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

8ヶ月 前

解決済み


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

8ヶ月 前

解決済み


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

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ヶ月 前

解決済み


Diagonal Cross Mandala
Generate an N×N matrix with diagonals highlighted to form an artistic X-shaped mandala pattern. e.g. N = 5; 1 0 0...

9ヶ月 前

解決済み


Is it Possible? ( Easy )
In the first part of series, we simplify the problem. Given two jugs with capacities A and B, and a target amount T, determine i...

9ヶ月 前

解決済み


Velocity of a Particle Under Constant Acceleration Using Energy Methods
Scientists at CERN are testing a linear accelerator that uses electromagnetic force to accelerate charged particles along a stra...

9ヶ月 前

解決済み


Angular Velocity of a Falling Rod Pivoted at One End (Energy + Rotation)
Engineers at Indian Institute of Technology Bombay are designing a rotating docking arm for a future space station. The arm is m...

9ヶ月 前

解決済み


Angular Velocity of a Falling Rod Pivoted at One End (Energy + Rotation)
Engineers at Indian Institute of Technology Bombay are designing a rotating docking arm for a future space station. The arm is m...

9ヶ月 前

解決済み


Angular Velocity Required to Create Artificial Gravity
Scientists at NASA and Indian Space Research Organisation are designing a rotating space station ring to simulate Earth-like gra...

9ヶ月 前

解決済み


Moment of Inertia Using Parallel Axis Theorem
Engineers at Indian Space Research Organisation are designing a satellite with extendable robotic arms. When the arms extend out...

9ヶ月 前

さらに読み込む