Skip to content

Commit dd49b92

Browse files
refactor 466
1 parent b56ca75 commit dd49b92

File tree

1 file changed

+0
-20
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-20
lines changed

src/main/java/com/fishercoder/solutions/_466.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 466. Count The Repetitions
5-
*
6-
* Define S = [s,n] as the string S which consists of n connected strings s. For example, ["abc", 3] ="abcabcabc".
7-
8-
On the other hand, we define that string s1 can be obtained from string s2 if we can remove some characters from s2 such that it becomes s1.
9-
For example, “abc” can be obtained from “abdbec” based on our definition, but it can not be obtained from “acbbe”.
10-
You are given two non-empty strings s1 and s2 (each at most 100 characters long) and two integers 0 ≤ n1 ≤ 106 and 1 ≤ n2 ≤ 106.
11-
Now consider the strings S1 and S2, where S1=[s1,n1] and S2=[s2,n2]. Find the maximum integer m such that [S2,m] can be obtained from S1.
12-
13-
Example:
14-
15-
Input:
16-
s1="acb", n1=4
17-
s2="ab", n2=2
18-
19-
Return:
20-
2
21-
22-
*/
233
public class _466 {
244

255
public static class Solution1 {

0 commit comments

Comments
 (0)