Assignment: 1
Course Code: CSE 111
Course: Structured Programming Language
Session: Spring-2023 [Bi-semester]
Intake: 51
Instructions:


Total Mark: 5
Submission deadline: 14/02/2023
Assignment must be hand-written.
1.Given a num that contains only digits and an integer target, return all possibilities to
insert the binary operators '+', '-', and/or '*' between the digits of num so that the resultant
expression evaluates to the target value.
Note that operands in the returned expressions should not contain leading zeros.
For Example:
Input: num = 123, target = 6
Output: Possible
Impossible
num = 45, target = 6
Explanation: Both 1*2*3 and 1+2+3 evaluate to 6.
2.A particle has initial velocity and acceleration. If its velocity after certain time is v then what will
its displacement be in twice of that time?
Sample Input: 5 12
Output: 120
1