DEV Community 👩‍💻👨‍💻

Discussion on: Crushing Job Interviews(DSA) - Two Number Sum

Collapse
 
dagnelies profile image
Arnaud Dagnelies

A very interesting tweak would be: "the sum of any amount of numbers". This alone would raise the difficulty and make the problem more interesting/challenging. ... Especially so because you can follow the train of thoughts during solving.

Somehow, I always get bored by trivial puzzles like the presented one with a+b.

Collapse
 
dhruvindev profile image
Dhruvin Author

Yes
I think a appropriate solutions for this would be to create a array and whenevner we find a valid sum, instead of returning the array, we can just append it and return that array.

Stay tuned bruh, a lot more complex question are comming.