Skip to content

Commit 53ccc1a

Browse files
committed
refine comment for lzw
1 parent 2506a84 commit 53ccc1a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

algs4/lzw.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,8 @@
44
* Data files: https://algs4.cs.princeton.edu/55compression/abraLZW.txt
55
* https://algs4.cs.princeton.edu/55compression/ababLZW.txt
66
*
7-
* Compress or expand binary input from standard input using LZW.
8-
*
9-
* WARNING: STARTING WITH ORACLE JAVA 6, UPDATE 7 the SUBSTRING
10-
* METHOD TAKES TIME AND SPACE LINEAR IN THE SIZE OF THE EXTRACTED
11-
* SUBSTRING (INSTEAD OF CONSTANT SPACE AND TIME AS IN EARLIER
12-
* IMPLEMENTATIONS).
13-
*
14-
* See <a href = "http://java-performance.info/changes-to-string-java-1-7-0_06/">this article</a>
15-
* for more details.
7+
* % python lzw.py - < abraLZW.txt | python lzw.py +
8+
* ABRACADBRACRAACRA
169
*
1710
"""
1811

0 commit comments

Comments
 (0)