Commit 4d49764
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 39421b1 commit 4d49764
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
0 commit comments