Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bighuang624/Algorithms-notes
/ functions
Functions
794 in github.com/bighuang624/Algorithms-notes
⨍
Functions
794
◇
Types & classes
151
Method
main
Unit tests some of the methods in {@code StdOut}. @param args the command-line arguments
code/algs4/StdOut.java:311
Method
main
Unit tests the {@code SET} data type. @param args the command-line arguments
code/algs4/SET.java:282
Method
main
Reads in a sequence of bytes from standard input and draws them to standard drawing output as a width-by-height picture, using black for 1 and white f
code/algs4/PictureDump.java:48
Method
main
Unit tests the {@code Interval2D} data type. @param args the command-line arguments
code/algs4/Interval2D.java:119
Method
main
Test client. @param args the command-line arguments
code/algs4/Draw.java:1361
Method
main
Test client. Reads in a binary input file from standard input and writes it to standard output. @param args the command-line arguments
code/algs4/BinaryStdIn.java:282
Method
main
Reads in a sequence of integers from the whitelist file, specified as a command-line argument; reads in integers from standard input; prints to standa
code/algs4/BinarySearch.java:91
Method
main
Reads in a sequence of strings from standard input; heapsorts them; and prints them to standard output in ascending order. @param args the command-li
code/algs4/Heap.java:112
Method
main
Unit tests the {@code ST} data type. @param args the command-line arguments
code/algs4/ST.java:222
Method
main
Interactive test of basic functionality. @param args the command-line arguments
code/algs4/StdIn.java:541
Method
main
Unit tests the {@code In} data type. @param args the command-line arguments
code/algs4/In.java:564
Method
main
Unit tests this {@code Picture} data type. Reads a picture specified by the command-line argument, and shows it in a window on the screen. @param arg
code/algs4/Picture.java:364
Method
main
Unit test. @param args the command-line arguments
code/algs4/StdRandom.java:512
Method
main
Reads two command-line integers n and trials; creates n counters; increments trials counters at random; and prints results. @param args the command-l
code/algs4/Counter.java:97
Method
main
Reads in a sequence of bytes from standard input and writes them to standard output using hexademical notation, k hex digits per line, where k is give
code/algs4/HexDump.java:59
Method
main
Unit tests the {@code MinPQ} data type. @param args the command-line arguments
code/algs4/MinPQ.java:274
Method
main
(String[] args)
code/chapter3_1_Symbol_Tables/FrequencyCounter.java:12
Method
main
(String[] args)
code/chapter6_3_Suffix_Arrays/LRS.java:11
Method
main
(String[] args)
code/chapter6_3_Suffix_Arrays/KWIC.java:13
Method
main
(String[] args)
code/chapter1_5_Case_Study_Union_Find/UF.java:67
Method
main
(String[] args)
code/chapter4_3_Minimum_Spanning_Tree/UF.java:67
Method
main
(String[] args)
code/chapter4_3_Minimum_Spanning_Tree/TestMST.java:11
Method
main
(String[] args)
code/chapter2_1_Elementary_Sorts/SortCompare.java:43
Method
main
(String[] args)
code/chapter5_3_Substring_Search/RabinKarp.java:64
Method
main
(String[] args)
code/chapter5_3_Substring_Search/BoyerMoore.java:47
Method
main
(String[] args)
code/chapter5_3_Substring_Search/KMP.java:38
Method
main
(String[] args)
code/chapter4_4_Shortest_Paths/TestSP.java:11
Method
main
(String[] args)
code/chapter1_1_Programming_Model/StdDrawTest.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex15.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex19.java:20
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex30.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex14.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex31.java:20
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex11.java:8
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex9.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex10.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Sattolo.java:20
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex20.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex1.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex3.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex7a.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/RightTriangle.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex2.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/BouncingBall.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex7b.java:6
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex32.java:10
Method
main
(String[] args)
code/chapter1_1_Programming_Model/BinarySearch.java:28
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex8.java:5
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex7c.java:7
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex13.java:8
Method
main
(String[] args)
code/chapter1_1_Programming_Model/Ex6.java:6
Method
main
(String[] args)
code/chapter1_2_Data_Abstraction/WhiteList.java:8
Method
main
(String[] args)
code/chapter1_2_Data_Abstraction/Cat.java:8
Method
main
(String[] args)
code/chapter1_2_Data_Abstraction/FlipsMax.java:16
Method
main
(String[] args)
code/chapter1_2_Data_Abstraction/Rolls.java:9
Method
main
(String[] args)
code/chapter1_2_Data_Abstraction/AccumulatorTest.java:8
Method
main
(String[] args)
code/chapter1_2_Data_Abstraction/Flips.java:9
Method
main
(String[] args)
code/chapter1_2_Data_Abstraction/Interval2DTest.java:11
Method
main
(String[] args)
code/chapter1_2_Data_Abstraction/VisualAccumulatorTest.java:8
Method
max
Returns the max endpoint of this interval. @return the max endpoint of this interval
code/algs4/Interval1D.java:112
Method
max
Returns the largest key in this set. @return the largest key in this set @throws NoSuchElementException if this set is empty
code/algs4/SET.java:144
Method
max
()
code/chapter3_1_Symbol_Tables/BinarySearchST.java:82
Method
min
Returns the min endpoint of this interval. @return the min endpoint of this interval
code/algs4/Interval1D.java:103
Method
min
Returns the smallest key in this set. @return the smallest key in this set @throws NoSuchElementException if this set is empty
code/algs4/SET.java:155
Method
min
Returns a smallest key on this priority queue. @return a smallest key on this priority queue @throws NoSuchElementException if this priority queue is
code/algs4/MinPQ.java:134
Method
min
()
code/chapter3_1_Symbol_Tables/BinarySearchST.java:78
Method
minIndex
Returns an index associated with a minimum key. @return an index associated with a minimum key @throws NoSuchElementException if this priority queue
code/algs4/IndexMinPQ.java:126
Method
minKey
Returns a minimum key. @return a minimum key @throws NoSuchElementException if this priority queue is empty
code/algs4/IndexMinPQ.java:137
Method
mouseClicked
This method cannot be called directly.
code/algs4/StdDraw.java:1712
Method
mouseClicked
This method cannot be called directly.
code/algs4/Draw.java:1189
Method
mouseDragged
This method cannot be called directly.
code/algs4/StdDraw.java:1752
Method
mouseDragged
This method cannot be called directly.
code/algs4/Draw.java:1244
Method
mouseEntered
This method cannot be called directly.
code/algs4/StdDraw.java:1718
Method
mouseEntered
This method cannot be called directly.
code/algs4/Draw.java:1197
Method
mouseExited
This method cannot be called directly.
code/algs4/StdDraw.java:1724
Method
mouseExited
This method cannot be called directly.
code/algs4/Draw.java:1205
Method
mouseMoved
This method cannot be called directly.
code/algs4/StdDraw.java:1763
Method
mouseMoved
This method cannot be called directly.
code/algs4/Draw.java:1258
Method
mousePressed
Returns true if the mouse is being pressed. @return {@code true} if the mouse is being pressed; {@code false} otherwise
code/algs4/StdDraw.java:1680
Method
mousePressed
Returns true if the mouse is being pressed. @return {@code true} if the mouse is being pressed; {@code false} otherwise
code/algs4/Draw.java:1157
Method
mouseReleased
This method cannot be called directly.
code/algs4/StdDraw.java:1742
Method
mouseReleased
This method cannot be called directly.
code/algs4/Draw.java:1230
Method
mouseX
Returns the <em>x</em>-coordinate of the mouse. @return the <em>x</em>-coordinate of the mouse
code/algs4/StdDraw.java:1691
Method
mouseX
Returns the x-coordinate of the mouse. @return the x-coordinate of the mouse
code/algs4/Draw.java:1167
Method
mouseY
Returns the <em>y</em>-coordinate of the mouse. @return <em>y</em>-coordinate of the mouse
code/algs4/StdDraw.java:1702
Method
mouseY
Returns the y-coordinate of the mouse. @return the y-coordinate of the mouse
code/algs4/Draw.java:1178
Method
move
Moves this particle in a straight line (based on its velocity) for the specified amount of time. @param dt the amount of time
code/algs4/Particle.java:82
Method
next
()
code/algs4/Stack.java:164
Method
next
()
code/algs4/IndexMinPQ.java:322
Method
next
()
code/algs4/Queue.java:154
Method
next
()
code/algs4/MinPQ.java:263
Method
nextKeyTyped
Returns the next key that was typed by the user (that your program has not already processed). This method should be preceded by a call to {@link #has
code/algs4/StdDraw.java:1800
Method
nextKeyTyped
The next key typed by the user. @return the next key typed by the user
code/algs4/Draw.java:1287
Method
pareto
Returns a random real number from the standard Pareto distribution. @return a random real number from the standard Pareto distribution
code/algs4/StdRandom.java:274
Method
partition
(Comparable[] a, int lo, int hi)
code/chapter2_3_Quicksort/Quick3way.java:35
Method
pathTo
(int v)
code/chapter4_4_Shortest_Paths/SP.java:13
Method
peek
Returns (but does not remove) the item most recently added to this stack. @return the item most recently added to this stack @throws NoSuchElementExc
code/algs4/Stack.java:119
Method
peek
Returns the item least recently added to this queue. @return the item least recently added to this queue @throws NoSuchElementException if this queue
code/algs4/Queue.java:85
Method
picture
Draws the specified image centered at (<em>x</em>, <em>y</em>). The supported image formats are JPEG, PNG, and GIF. As an optimization, the picture is
code/algs4/StdDraw.java:1329
Method
picture
Draws picture (gif, jpg, or png) centered on (x, y). @param x the center x-coordinate of the image @param y the center y-coordinate of the image @p
code/algs4/Draw.java:860
← previous
next →
601–700 of 794, ranked by callers