Solved


Basic Algebra I
You should solve the problem 3X - 2 = 7 by finding the value of X. You must use this array/vector [2 3 7]. GOOD LUCK!

5 days ago

Solved


Circle Perimeter
Get the perimeter of the Circle by PI.

5 days ago

Solved


Trapezium
Calculate the area of the Trapezium using it's bases and height.

5 days ago

Solved


Basic Physics I
Calculate the energy by the famous formula of Albert Einstein.

5 days ago

Solved


Find The Area Of The Circle
Find the area of the Circle using PI.

5 days ago

Solved


Find The Area Of Triangle Using Base & Height
You should find the area of the Triangle using base and height. Good Luck!

5 days ago

Solved


[Master Regular Expression] String To Integer
Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer. The algorithm for myAtoi(string s)...

8 days ago

Solved


Geometric Compression Ratio
The geometric compression ratio CR is the ratio of the total cylinder volume at BDC to the clearance volume at TDC. It is one of...

9 days ago

Solved


Swept Volume and Clearance Volume
The swept volume (V_s) is the volume displaced by the piston as it travels from BDC (Bottom Dead Centre) to TDC (Top Dead Centre...

9 days ago

Solved


Specific Fuel Consumption
Brake-specific fuel consumption (BSFC) measures how efficiently an engine converts fuel mass into useful work. Lower is better...

9 days ago

Solved


Piston Mean Speed
Mean piston speed is a critical mechanical stress indicator — it sets limits on valve timing, bearing loads, and material fatigu...

9 days ago

Solved


Engine Displacement
Engine displacement is the total swept volume of all cylinders. It is determined by bore (cylinder diameter), stroke (piston tra...

9 days ago

Solved


Fuel-Air Equivalence Ratio (Lambda)
Lambda (λ) is the ratio of actual air-fuel ratio to the stoichiometric air-fuel ratio. λ = 1 is perfect stoichiometry, λ < 1 is ...

9 days ago

Solved


Volumetric efficiency
Volumetric efficiency measures how well an engine breathes. The ratio of the actual air mass drawn in per cycle to the theoreti...

9 days ago

Solved


Brake Mean Effective Pressure (BMEP)
BMEP is a normalised measure of engine work output per cycle per unit displacement. It lets you compare engines of different siz...

9 days ago

Solved


Engine torque and RPM
Torque and power are related through rotational speed. Knowing brake power and engine RPM, you can back-calculate the torque del...

9 days ago

Solved


Insert same number of zeros for each of elements in the vector. Number of zeros for a given number in vector
Same number of zeros for a given number in the vector, if there is a negative number in vector, then insert zeros to precede ...

9 days ago

Solved


Engine Thermal Efficiency
The thermal efficiency of an ideal Otto cycle engine depends only on the compression ratio. A higher compression ratio yields gr...

9 days ago

Solved


Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the shorter leg.
Further to the problem 43236, find the length of shorter leg P.S No built-in functions allowed

9 days ago

Solved


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

23 days ago

Solved


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

26 days ago

Solved


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

26 days ago

Solved


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

26 days ago

Solved


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

26 days ago

Solved


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

26 days ago

Solved


Reverse the characters of a string
Given a string, return the string with characters in reverse order. Example: rev_string('hello') returns 'olleh'

26 days ago

Solved


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

26 days ago

Solved


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

26 days ago

Solved


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

28 days ago

Solved


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

1 month ago

Load more