New update is available. Click here to update.

Last Updated: 8 Jan, 2021

Difficulty: Easy

```
Can you solve this in logarithmic time and space complexity?
```

```
The first line of input contains a single integer 'T', representing the number of test cases.
The first line of each test contains a single integer 'N', denoting the URL id.
```

```
For each test case, return a short URL for the URL id.
```

```
You don't need to print anything, it has already been taken care of. Just implement the given function.
```

```
1 <= T <= 1000
0 <= N <= 10^18
Time limit: 1sec
```

SIMILAR PROBLEMS

Can You Print

Posted: 14 Apr, 2022

Difficulty: Easy

Prime Digit Sum

Posted: 17 Apr, 2022

Difficulty: Hard

Prime Digit Sum

Posted: 17 Apr, 2022

Difficulty: Hard

Mario And His Princess

Posted: 12 May, 2022

Difficulty: Moderate

Matrix Boundary Traversal

Posted: 20 May, 2022

Difficulty: Easy

8-Queen Problem

Posted: 19 Dec, 2022

Difficulty: Easy

Popular Interview Problems: