Tip 1 : Participate in live contests on coding platforms as much as possible.
Tip 2 : Practice previous interview questions from online websites.
Tip 3 : Revise Computer Science subjects like DBMS, OOPS thoroughly.
Tip 1: Have some projects on your resume.
Tip 2: Only write things in the resume that you are confident about and keep practicing.








1. Horizontally as 1x2 tile
2. Vertically as 2x1 tile
The number of ways might be large so output your answer modulo 10^9 + 7.




Example: String "aabbbcdcdcd" will be encrypted as "a2b3cd3".
Input string will always be lowercase characters without any spaces.
If the count of a substring is 1 then also it will be followed by Integer '1'.
Example: "aabcdee" will be Encrypted as "a2bcd1e2"
This means it's guaranteed that each substring is followed by some Integer.
Also, the frequency of encrypted substring can be of more than one digit. For example, in "ab12c3", ab is repeated 12 times. No leading 0 is present in the frequency of substring.
The frequency of a repeated substring can also be in parts.
Example: "aaaabbbb" can also have "a2a2b3b1" as Encrypted String.



The pair consists of equal absolute values, one being positive and another negative.
Return an empty array, if no such pair exists.




In figure 1 : friend-1 has to pay 2000$ to friend-2, and 4000$ to friend-3 and friend-2 has to pay 3000$ to friend-3.
In figure 2 : so we can minimize the flow between friend-1 to friend-2 by direct pay to friend-1 to friend-3

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?