Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
balamurali.manickavasagam
Instead of checking elements the indexes can be compared.

balamurali.manickavasagam

Feb 22, 2024

It still works with the below condition instead of if ( nums[i] != nums[j])

if (i !=j)

1

0

Comments
Comments

On this page