Commit 39421b1
committed
feat: Mirror a string by concatenating it with itself for multiple test cases
🧠 Logic:
- Read the number of test cases `t`.
- For each test case:
- Read a string `s`.
- Create a new string `x` by concatenating `s + s`.
- Print `x`.
📌 Purpose:
Demonstrates string manipulation using concatenation in Java and looping through multiple inputs efficiently.
Signed-off-by: Somesh diwan <[email protected]>1 parent 068e82a commit 39421b1
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | | - | |
| 30 | + | |
0 commit comments