Skip to content

Commit

Permalink
Fix predicate in 104
Browse files Browse the repository at this point in the history
  • Loading branch information
WeetHet committed Aug 19, 2024
1 parent 27c6ef8 commit 8424aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 104-unique_digits.dfy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
predicate HasNoEvenDigit(n: int)
decreases n
{
n >= 0 && (n < 10 || (n % 10 % 2 != 0 && HasNoEvenDigit(n / 10)))
n >= 0 && ((n < 10 && n % 2 == 1) || (n % 2 == 1 && HasNoEvenDigit(n / 10)))
}

method UniqueDigits(x: seq<int>) returns (result: seq<int>)
Expand Down

0 comments on commit 8424aa6

Please sign in to comment.