Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Everyone,
I am facing an issue while creating a logic. Require your help
Data:
| A |
| 1 |
| 2 |
| 2 |
| 2 |
| 2 |
| 3 |
| 3 |
| 3 |
| 3 |
| 4 |
| 2 |
| 2 |
| 3 |
| 3 |
| 4 |
4 |
Output:
| A | Output |
| 1 | 1 |
| 2 | 2_1 |
| 2 | 2_2 |
| 2 | 2_3 |
| 2 | 2_4 |
| 3 | 3_2_4_1 |
| 3 | 3_2_4_2 |
| 3 | 3_2_4_3 |
| 3 | 3_2_4_4 |
| 4 | 4_3_2_4_4_1 |
| 2 | 2_5 |
| 2 | 2_6 |
| 3 | 3_2_6_1 |
| 3 | 3_2_6_2 |
| 4 | 4_3_2_6_2_1 |
| 4 | 4_3_2_6_2_2 |
The logic behind the output is very easy.
Thanking you all in anticipation
Regards
KP
Hey antoniotiman thanks for your instant reply, but as I told vineet the problem here is its a static code. What if 5,6,7 are added to the tree then this will work only for 1,2,3 and 4
won't be a problem, try and let me know
I added 5,5,6,6,7 (same script)

its working thanks ![]()
its working buddy..!! thanks a ton ![]()