A résolu


Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I​ where: V is the voltage (in volts) I is the current (in ampere...

plus d'un an il y a

A résolu


Simple Electrical Power Calculation
Calculate the electrical power using the formula: P=V×I where: V is the voltage (in volts) I is the current (in amperes)

plus d'un an il y a

A résolu


Calculate Current in a Series Circuit Using KVL
Kirchhoff's Voltage Law (KVL) states that the sum of voltages around a closed loop is zero. Given a voltage source (V) and three...

plus d'un an il y a

A résolu


Calculating the Total Resistance in a Series Circuit
Description: In a series circuit, the total resistance is the sum of the individual resistances. This problem asks you to write ...

plus d'un an il y a

A résolu


Sum of Even Fibonacci Numbers
Description: The Fibonacci sequence is defined as follows:F(1)=1,F(2)=1,F(n)=F(n−1)+F(n−2) for n>2 Write a function that compu...

plus d'un an il y a

A résolu


Calculate y=2
Find the value of x so that y=2

plus d'un an il y a

A résolu


Construct the number counts sequence
A sequence is constructed in the following way. The zeroth term is 1, and the next terms are determined by counting the number i...

plus d'un an il y a

A résolu


List the first of three consecutive square-free numbers
The numbers 13, 14, and 15 are consecutive, of course, but they also share the property of being square-free. That is, each numb...

plus d'un an il y a

A résolu


Sub-sequence - 02
Given two sequences, find the length of the longest common subsequence. a=[1,1,1,1,1,2,3,1,4] b=[2,3,0,0,9,5,4,1] longe...

plus d'un an il y a

A résolu


Count the primes resulting from changing one digit of a number
If you start with the number 24 and seek primes by changing a single digit, you can find two: 23 and 29. If you start with 130, ...

plus d'un an il y a

A résolu


Fault in our Stars - 01
Create a ladder pattern with n-steps and b-width. For example, For n=2, b=5 -- the ladder would look like - '* ...

plus d'un an il y a

A résolu


Checkmate-02
This is an extension of the problem <https://www.mathworks.com/matlabcentral/cody/problems/45238-checkmate> If the king is in...

plus d'un an il y a

A résolu


Can the knight take out the pawn?
* position of knight = k * position of pawns = p can the knight take out those pawns? * k='Nf4' * p={'g6','g7'} then...

plus d'un an il y a

A résolu


Castling-01
Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or no...

plus d'un an il y a

A résolu


Checkmate
* The positions of different chess pieces are given in a cell *p* . * The position of the king is given as *x* Determine i...

plus d'un an il y a

A résolu


Bernoulli's Triangle
Generate the bernoulli's triangle upto nth row. <https://mathworld.wolfram.com/BernoulliTriangle.html>

plus d'un an il y a

A résolu


Solve an easy binary puzzle
A binary puzzle presents a square grid (or matrix) of cells in which each cell must be 0 or 1. The finished puzzle must follow t...

plus d'un an il y a

A résolu


Play Hocus Focus
The card game Hocus Focus starts by placing twelve cards with wizards face up on a table. The characteristics of the wizards tha...

plus d'un an il y a

A résolu


Indicate how the Prague astronomical clock strikes the hours
The astronomical clock in Prague has a bell that rings 1, 2, 3, or 4 times. The number of strokes follows the sequence 123432123...

plus d'un an il y a

A résolu


Convert integers from base 10 to proper primary notation
This problem is the companion to Cody Problem 60782. The proper primary system of expressing non-negative numbers has three digi...

plus d'un an il y a

A résolu


Express integers in negabinary
Negabinary numbers are written in base -2. For example, the negabinary number 11010 is , or 6 in base 10. In a similar way, -3 i...

plus d'un an il y a

A résolu


Convert integers from primary notation to base 10
The primary system of expressing numbers has three digits: m, x, and p, which correspond to -1, 0, and 1. The places in a primar...

plus d'un an il y a

A résolu


Simple addition
Add two numbers using a funciton

plus d'un an il y a

A résolu


Complete hydraulic geometry relations
Hydraulic geometry relations express the velocity , width , and depth of a river as a function of the discharge (or flow) , whi...

plus d'un an il y a

A résolu


EZ8
EZ

plus d'un an il y a

A résolu


EZ9
EZ

plus d'un an il y a

A résolu


EZ10
EZ

plus d'un an il y a

A résolu


EZ7
EZ

plus d'un an il y a

A résolu


EZ6

plus d'un an il y a

A résolu


EZ4

plus d'un an il y a

Charger plus