GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — minor correction: deleted redundant code · tttamaki/AlgorithmVisualizer@ff73247

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • algorithm/string/knuth_morris_pratt/substring_search
    • code.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎algorithm/string/knuth_morris_pratt/substring_search/code.js‎

Copy file name to clipboardExpand all lines: algorithm/string/knuth_morris_pratt/substring_search/code.js
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ Number.prototype.mod = function (n) {
33
return ((this%n)+n)%n;
44
};
55

6-
function randString (length) {
7-
var result = Math.random ().toString (36);
8-
return result.substring (result.length - length);
9-
}
10-
116
function tracker (substring) {
127
var i = 1, j = 0;
138

@@ -110,4 +105,4 @@ var positions = kmp (string, substring);
110105
logger._print ('Substring positions are: ' + (positions.length ? String (positions) : 'NONE'));
111106
for (var i = 0; i < positions.length; i++) {
112107
stringTracer._select (positions [i], positions [i] + substring.length - 1)._wait ();
113-
}
108+
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.