ishitajuneja's blog








Targets are the motivation behind every task! 

Usually, the codes you generate are to meet certain targets or outputs for the user. Similarly, when you give a target to an array and its element, a two-sum problem is formed. 

Many times you are asked to print all subsequences of a stringor array such that they follow a specific condition. Such as the sum of two elements in these subsequences results in a certain value. This type of problem is called a twosumproblem. 

This article will guide you throughout the explanation of this problem as well as the process of solving it through different approaches. 

To ensure that you understand the concept and solution of this problem, it is important to establish a foundation with the logic behind it. 

Let's first discuss the logic behind the two-sum problem. 


What are two sum problems?

Two sum problem is a medium difficulty level coding problem. In this problem, the programmer is given a task to scan through an array for ... more

Archives