ggg

Prompt

Write a python function to check if a given number is one less than twice its reverse. Your function should satisfy these tests: ```python assert check(70) == False assert check(23) == False assert check(73) == True ```

Answer guidance

Reference solution: def rev(num): rev_num = 0 while (num > 0): rev_num = (rev_num * 10 + num % 10) num = num // 10 return rev_num def check(n): return (2 * rev(n) == n + 1)

Drag to resize
Drag to resize
Drag to resize
Drag to resize