INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
name: Minimal Android CI Workflow | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
jobs: |
<?php | |
class Category { | |
public static $HAM = 'ham'; | |
public static $SPAM = 'spam'; | |
} | |
?> |
<?php | |
// Referensi : | |
// https://id.wikipedia.org/wiki/Algoritma_Knuth-Morris-Pratt | |
// https://stackoverflow.com/questions/44081348/is-it-possible-to-use-knuth-morris-pratt-algorithm-for-string-matching-on-text-t | |
// http://www.elangsakti.com/2013/03/implementasi-algoritma-string-matching.html | |
// https://stackoverflow.com/questions/29439930/knuth-morris-pratt-string-search-algorithm | |
// https://stackoverflow.com/questions/5873935/how-to-optimize-knuth-morris-pratt-string-matching-algorithm | |
// https://stackoverflow.com/questions/13271856/understanding-knuth-morris-pratt-algorithm | |
// | |
// |
//brute force algorithm | |
//string matching | |
import java.io.*; | |
import java.util.Scanner; | |
class Bruteforce{ | |
//called function | |
public static int bruteforce(String text,String tobematched){ | |
int length = text.length();//length of the text | |
int plength = tobematched.length();//length of the pattern; |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
package main | |
import ( | |
"fmt" | |
"testing" | |
) | |
func assertEqual(t *testing.T, a interface{}, b interface{}, message string) { | |
if a == b { | |
return |
<?php | |
class Node | |
{ | |
public $name; | |
public $linked = array(); | |
public function __construct($name) | |
{ | |
$this->name = $name; |