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

0% completed

Vote For New Content
How do you solve this if the numbers are not distinct?

andrew rivada

Jul 19, 2022

How do you solve this if the numbers are not distinct?

2

0

Comments
Comments
D
Dylan Asoh3 years ago

would appreciate a response to this

B
Becca 3 years ago

I would also appreciate a response

Design Gurus
Design Gurus3 years ago

That would require an altogether different approach.

Here is a solution to solve this problem with backtracking (and dfs):

https://justpaste.it/bkl3x

B
Becca 3 years ago

ty

On this page