This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Notepad; | |
import java.awt.*; | |
import javax.swing.*; | |
import java.awt.Toolkit; | |
public abstract class DFrame extends JFrame{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Notepad; | |
public class KMP { | |
static int[] getNext(String p){ | |
int i=1,j=0; | |
int[] next = new int[p.length()+2]; | |
char[] pattern = p.toCharArray(); | |
next[0] = -1; |
NewerOlder