Available question text
Given two decimal strings that may include a repeating part in parentheses, determine whether they represent the same rational number (handling edge cases like 0.9(9) = 1). Parse the integer, non-repeating, and repeating parts and compare their canonical rational (fractional) forms to check equality.
Related questions
Continue with questions that share topics or the same question type.
- Number of Equal Numbers Blocks
Coding
- Number of Ways Where Square of Number Is Equal to Product of Two Numbers
Coding
- Add Two Numbers
Coding · Linked List · Math · Recursion
- Add Two Numbers II
Coding · Linked List · Math · Stack
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 972. Equal Rational Numbers
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source