Reverse an integer.
Asked in the Round 3 stage. Use the integer_values table to reverse each non-NULL integer, preserving its sign. Values may exceed the PostgreSQL BIGINT range.
input_integer and reversed_integer.id ascending.| Column | Type | Description |
|---|---|---|
| idPK | INTEGER | Unique identifier for the input row |
| input_integer | NUMERIC(30,0) | Integer to reverse, potentially larger than BIGINT |