Skip to content

Commit 9f97a69

Browse files
Modified Explanation to day3/q002 code
1 parent 34dd37c commit 9f97a69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Problems/Mathematics/Day-03/sol/Ayush_Saha/Solution2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
Proper fractions mean the resistors are arranged in parallel.
2323
The simplest proper fraction to work with is of the type 1 / b, which means b resistors arranged in parallel.
2424
The first step of the converting a proper fraction to it's continued fraction form is to convert it into an improper fraction.
25-
So a / b becomes 1 / (b / a). Now we conver b / a to it's mixed form. We keep doing this until we get r / b, where r = 1.
26-
We keep tracking k, because that gives us number of resistors arranged in series the final b, gives the last few resistors
25+
So a / b becomes 1 / (b / a). Now we convert b / a to it's mixed form ki + (ri / ai). We keep doing this until we get r / ai, where r = 1.
26+
We keep tracking ki, because that gives us number of resistors arranged in series the final ai, gives the last few resistors
2727
that are arranged in parallel.
2828
*/
2929

0 commit comments

Comments
 (0)