Skip to content

Commit f0a3c83

Browse files
committed
Repeated string
1 parent 9c209c5 commit f0a3c83

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

implementation/repeatedString.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
3+
class repeatedString {
4+
5+
/*
6+
* Complete the 'repeatedString' function below.
7+
*
8+
* The function is expected to return a LONG_INTEGER.
9+
* The function accepts following parameters:
10+
* 1. STRING s
11+
* 2. LONG_INTEGER n
12+
*/
13+
14+
public static long repeatedString(String s, long n) {
15+
// Write your code here
16+
17+
}
18+
19+
public static void main(String[] args) {
20+
String s = "abcac";
21+
long n = 10;
22+
System.out.println(repeatedString(s, n));
23+
}
24+
25+
}

0 commit comments

Comments
 (0)