Solved


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

5 months ago

Solved


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

5 months ago

Solved


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

5 months ago

Solved


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

5 months ago

Solved


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.

5 months ago

Solved


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.

5 months ago

Problem


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

5 months ago | 0 | 7 solvers

Solved


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

5 months ago

Problem


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

5 months ago | 0 | 8 solvers

Solved


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

5 months ago

Solved


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

5 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


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

6 months ago

Solved


Estimate dynamic load transfer to front axle during braking.
During braking, load shifts from the rear axle to the front axle. Given mass, deceleration, center of gravity height, and wheelb...

6 months ago

Load more