Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content

The constraint should be `1 <= nums[i] <= n`

Jack Tan

Oct 23, 2025

0

1

0

Oct 23, 2025

Can't we just fill the array with 1 to n?

Jack Tan

Oct 22, 2025

0

1

1

Oct 22, 2025

Java version break condition "without using any extra space"

Vladimir Surcov

May 1, 2025

0

2

0

May 1, 2025

Would the answer be always an array in ascending order from 1 to n?

Venkatesh Vinayakarao

Dec 11, 2024

0

15

1

Sep 25, 2025

More eleganct c++ pattern

lejafilip

Jul 29, 2024

0

18

0

Jul 29, 2024

Another way of doing it

Mohammed Dh Abbas

Jul 18, 2024

0

33

0

Jul 18, 2024

Shouldn't "nums[i] != nums[j]" be "i != nums[j]"?

Harsh Chiki

Jun 16, 2024

0

31

1

Jun 16, 2024

Weird behavior when running C#

quil

Feb 26, 2024

0

7

0

Feb 26, 2024

Instead of checking elements the indexes can be compared.

balamurali.manickavasagam

Feb 22, 2024

1

33

0

Feb 26, 2024

Help with using separate variable for correct index vs accessing directly

Adil

Dec 28, 2023

0

14

1

Dec 28, 2023

The time complexity part has a typo for its' first sentence. The end part should...

eric

Jan 27, 2022

0

45

1

Sep 26, 2022