DEV Community 👩‍💻👨‍💻

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

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.

dhruvindev profile image
Dhruvin Author

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.