MCPcopy Create free account

hub / github.com/Berkeley-CS61B/skeleton-sp23 / functions

Functions684 in github.com/Berkeley-CS61B/skeleton-sp23

↓ 1 callersMethodallAs
Returns a string of all 'a' of length LEN.
lab07/tests/StringUtils.java:67
↓ 1 callersMethodarrayMax
Returns a new array where entry i is the max of a[i] and b[i]. For example, if a = {1, -10, 3} and b = {0, 20, 5}, this function will return {1, 20, 5
lab02/src/adventure/MachineStage.java:108
↓ 1 callersMethodarrayMax
Returns a new array where entry i is the max of a[i] and b[i]. For example, if a = {1, -10, 3} and b = {0, 20, 5}, this function will return {1, 20, 5
lab03/src/adventure/MachineStage.java:108
↓ 1 callersMethodarraySimilarity
Computes the proportion of objects in listOne that appear in listTwo. If an object appears multiple times in listOne, it will be counted at most as ma
lab02/src/adventure/SpeciesListStage.java:99
↓ 1 callersMethodarraySimilarity
Computes the proportion of objects in listOne that appear in listTwo. If an object appears multiple times in listOne, it will be counted at most as ma
lab03/src/adventure/SpeciesListStage.java:99
↓ 1 callersMethodarraySum
Returns the sum of all elements in x.
lab02/src/adventure/MachineStage.java:125
↓ 1 callersMethodarraySum
Returns the sum of all elements in x.
lab03/src/adventure/MachineStage.java:125
↓ 1 callersMethodcaptureOutput
()
lab02/tests/helpers/CaptureSystemOutput.java:118
↓ 1 callersMethodcaptureOutput
()
proj0/tests/helpers/CaptureSystemOutput.java:118
↓ 1 callersMethodcaptureOutput
()
lab03/tests/helpers/CaptureSystemOutput.java:118
↓ 1 callersMethodcommaSeparatedStringToList
(String s)
proj2a/ngordnet/browser/NgordnetQueryHandler.java:16
↓ 1 callersMethodcountWords
Returns a map of the counts of all words that appear in a list of words.
hw0b/src/MapExercises.java:20
↓ 1 callersFunctiondb
(a,b,c)
proj2a/static/jquery.min.js:3
↓ 1 callersMethoddigitsToIntList
Given an input string of digits, converts it into an IntList of single-digit ints. For example, the string "606" is converted to 6 -> 0 -> 6.
lab02/src/adventure/PalindromeStage.java:83
↓ 1 callersMethoddigitsToIntList
Given an input string of digits, converts it into an IntList of single-digit ints. For example, the string "606" is converted to 6 -> 0 -> 6.
lab03/src/adventure/PalindromeStage.java:78
↓ 1 callersMethoddisplayChart
(XYChart chart)
proj2a/ngordnet/plotting/Plotter.java:33
↓ 1 callersMethoddraw
Draws the tile to the screen at location x, y. If a valid filepath is provided, we draw the image located at that filepath to the screen. Otherwise, w
lab13/src/byowTools/TileEngine/TETile.java:84
↓ 1 callersMethoddraw
Draws the tile to the screen at location x, y. If a valid filepath is provided, we draw the image located at that filepath to the screen. Otherwise, w
proj3/byow/TileEngine/TETile.java:84
↓ 1 callersMethoddraw
Draws the tile to the screen at location x, y. If a valid filepath is provided, we draw the image located at that filepath to the screen. Otherwise, w
lab12/src/tileengine/TETile.java:83
↓ 1 callersMethoderrorBadIntegerInput
Prints a nice message for the user on bad input
lab08/tests/speed/BucketsSpeedTest.java:115
↓ 1 callersMethoderrorBadIntegerInput
Prints a nice message for the user on bad input
lab08/tests/speed/InsertRandomSpeedTest.java:141
↓ 1 callersMethoderrorBadIntegerInput
Prints a nice message for the user on bad input
lab07/tests/InsertRandomSpeedTest.java:152
↓ 1 callersMethoderroringMethod
(Random r)
lab05/src/puzzle/Puzzle.java:60
↓ 1 callersMethodevens
Returns a list containing the even numbers of the given list
hw0b/src/ListExercises.java:11
↓ 1 callersMethodexampleFibonacciExperiment
()
lab03/src/timing/Experiments.java:36
↓ 1 callersMethodexp
Returns a random real number from an exponential distribution with rate λ. @param lambda the rate of the exponential distribution @return a ra
lab13/src/byowTools/RandomUtils.java:341
↓ 1 callersMethodexp
Returns a random real number from an exponential distribution with rate λ. @param lambda the rate of the exponential distribution @return a ra
proj3/byow/Core/RandomUtils.java:341
↓ 1 callersFunctionfa
(a)
proj2a/static/jquery.min.js:3
↓ 1 callersFunctionfb
(a,b)
proj2a/static/jquery.min.js:3
↓ 1 callersMethodfib
Computes the nth Fibonacci number using a slow naive recursive strategy.
lab03/src/timing/Experiments.java:26
↓ 1 callersMethodfillWithRandomTiles
Fills the given 2D array of tiles with RANDOM tiles. @param tiles
lab12/src/knightworld/RandomWorldDemo.java:23
↓ 1 callersMethodfindMaxes
(List<Double> times)
lab03/tests/timing/Helpers.java:10
↓ 1 callersMethodflush
()
lab02/tests/helpers/CaptureSystemOutput.java:132
↓ 1 callersMethodflush
()
proj0/tests/helpers/CaptureSystemOutput.java:132
↓ 1 callersMethodflush
()
lab03/tests/helpers/CaptureSystemOutput.java:132
↓ 1 callersMethodgameOver
(Chooser chooser, int guesses)
proj0/src/aoa/AoAGame.java:32
↓ 1 callersFunctiongb
(a,b,c)
proj2a/static/jquery.min.js:3
↓ 1 callersMethodgetGameStartingAt
Returns a game starting at the given stage class for the given input file.
lab03/tests/adventure/AdventureGameTests.java:29
↓ 1 callersMethodgetGuess
(String pattern, List<Character> guesses)
proj0/src/aoa/guessers/Guesser.java:6
↓ 1 callersMethodgetLast
Returns the item from the back of the list.
lab03/src/timing/AList.java:45
↓ 1 callersMethodgetNextKey
()
proj3/byow/InputDemo/InputSource.java:7
↓ 1 callersMethodgetNextValidGuess
(Guesser g, String pattern, List<Character> guesses)
proj0/src/aoa/AoAGame.java:48
↓ 1 callersMethodgetNodeClass
This method gets a valid, internal node class from a given class. @param clazz the class you want to check @param doublyLinked whether or not
proj1a/tests/NodeChecker.java:129
↓ 1 callersMethodgetOrComputeIfAbsent
(Store store, Class<V> type)
lab02/tests/helpers/CaptureSystemOutput.java:84
↓ 1 callersMethodgetOrComputeIfAbsent
(Store store, Class<V> type)
proj0/tests/helpers/CaptureSystemOutput.java:84
↓ 1 callersMethodgetOrComputeIfAbsent
(Store store, Class<V> type)
lab03/tests/helpers/CaptureSystemOutput.java:84
↓ 1 callersMethodgetScanner
(String root, String resource)
proj0/tests/helpers/FileSourceProvider.java:59
↓ 1 callersMethodgetStore
(ExtensionContext context)
lab02/tests/helpers/CaptureSystemOutput.java:88
↓ 1 callersMethodgetStore
(ExtensionContext context)
proj0/tests/helpers/CaptureSystemOutput.java:88
↓ 1 callersMethodgetStore
(ExtensionContext context)
lab03/tests/helpers/CaptureSystemOutput.java:88
↓ 1 callersMethodgetTiles
Returns the tiles associated with this KnightWorld.
lab12/src/knightworld/KnightWorld.java:21
↓ 1 callersMethodhandleStage
runs the stage and its puzzles.
lab02/src/adventure/AdventureGame.java:30
↓ 1 callersMethodincrementCharArray
Helper function for nextString. Increments the Pth position of X by one, wrapping around to 'a' if p == 'z'. If wraparound occurs, then we need to car
lab08/tests/speed/StringUtils.java:62
↓ 1 callersMethodincrementCharArray
Helper function for nextString. Increments the Pth position of X by one, wrapping around to 'a' if p == 'z'. If wraparound occurs, then we need to car
lab07/tests/StringUtils.java:57
↓ 1 callersMethodinitialize
()
proj1c/src/gh2/GuitarPlayer.java:36
↓ 1 callersMethodinsertRandom
Returns time needed to put N random strings of length L into the hashmap.Map61B 61bMap.
lab08/tests/speed/BucketsSpeedTest.java:59
↓ 1 callersMethodinteractWithInputString
Method used for autograding and testing your code. The input string will be a series of characters (for example, "n123sswwdasdassadwas", "n123sss:q",
proj3/byow/Core/Engine.java:40
↓ 1 callersMethodinteractWithKeyboard
Method used for exploring a fresh world. This method should handle all inputs, including inputs from the main menu.
proj3/byow/Core/Engine.java:16
↓ 1 callersMethodisAllzs
Returns true if S is all 'z'. False for empty strings
lab08/tests/speed/StringUtils.java:81
↓ 1 callersMethodisAllzs
Returns true if S is all 'z'. False for empty strings
lab07/tests/StringUtils.java:76
↓ 1 callersMethodisCorrect
(int answer)
lab05/src/puzzle/Puzzle.java:56
↓ 1 callersMethodisLowerCase
Returns true if string S consists of characters between 'a' and 'z' only. No spaces, numbers, upper-case, or any other characters are allowed.
lab07/tests/StringUtils.java:32
↓ 1 callersFunctionj
()
proj2a/static/jquery.min.js:2
↓ 1 callersMethodletterToNum
Returns a map from every lower case letter to the number corresponding to that letter, where 'a' is 1, 'b' is 2, 'c' is 3, ..., 'z' is 26.
hw0b/src/MapExercises.java:8
↓ 1 callersMethodmain
(String[] args)
lab02/src/bomb/BombMain.java:6
↓ 1 callersMethodmakeGuess
(char letter)
proj0/src/aoa/choosers/Chooser.java:6
↓ 1 callersMethodmysteryAdd
(int a, int b)
lab02/src/adventure/MachineStage.java:88
↓ 1 callersMethodmysteryAdd
(int a, int b)
lab03/src/adventure/MachineStage.java:88
↓ 1 callersMethodmysteryMax
(int a, int b)
lab02/src/adventure/MachineStage.java:80
↓ 1 callersMethodmysteryMax
(int a, int b)
lab03/src/adventure/MachineStage.java:80
↓ 1 callersFunctionna
(a)
proj2a/static/jquery.min.js:2
↓ 1 callersMethodopen
(int row, int col)
hw2/src/Percolation.java:11
↓ 1 callersMethodparseResponse
(String response)
lab02/src/adventure/AdventureGame.java:49
↓ 1 callersMethodparseResponse
(String response)
lab03/src/adventure/AdventureGame.java:49
↓ 1 callersMethodphase0
(String password)
lab02/src/bomb/Bomb.java:35
↓ 1 callersMethodphase1
(IntList password)
lab02/src/bomb/Bomb.java:44
↓ 1 callersMethodphase2
(String password)
lab02/src/bomb/Bomb.java:55
↓ 1 callersMethodplus
Returns the year-wise sum of this TimeSeries with the given TS. In other words, for each year, sum the data from this TimeSeries with the data from TS
proj2a/ngordnet/ngrams/TimeSeries.java:60
↓ 1 callersMethodpossibleNextInput
()
proj3/byow/InputDemo/InputSource.java:8
↓ 1 callersMethodprintInfoOnStackOverflow
To be called after catching a StackOverflowError Prints the error with corresponding N and L
lab08/tests/speed/BucketsSpeedTest.java:107
↓ 1 callersMethodprintTimingTable
(TimingData data)
lab03/src/timing/Experiments.java:13
↓ 1 callersMethodrandomTile
Picks a RANDOM tile with a 33% change of being a wall, 33% chance of being a flower, and 33% chance of being empty space.
lab12/src/knightworld/RandomWorldDemo.java:37
↓ 1 callersMethodreadQueryMap
(QueryParamsMap qm)
proj2a/ngordnet/browser/NgordnetQueryHandler.java:24
↓ 1 callersMethodreleaseOutput
()
lab02/tests/helpers/CaptureSystemOutput.java:126
↓ 1 callersMethodreleaseOutput
()
proj0/tests/helpers/CaptureSystemOutput.java:126
↓ 1 callersMethodreleaseOutput
()
lab03/tests/helpers/CaptureSystemOutput.java:126
↓ 1 callersMethodresize
Resizes the underlying array to the target capacity.
lab03/src/timing/AList.java:28
↓ 1 callersMethodreverseList
Returns a new IntList with the contents of the original IntList in reverse order.
lab03/src/adventure/PalindromeStage.java:65
↓ 1 callersMethodrunTestGame
(String filePath)
lab02/tests/adventure/AdventureGameTests.java:78
↓ 1 callersMethodsample
()
proj1c/src/gh2/GuitarPlayer.java:53
↓ 1 callersMethodshowResults
(Chooser chooser)
proj0/src/aoa/AoAGame.java:96
↓ 1 callersMethodshuffle
Rearranges the elements of the specified array in uniformly random order. @param a the array to shuffle @throws IllegalArgumentException if {@code a}
proj3/byow/Core/RandomUtils.java:354
↓ 1 callersMethodshufflePassword
(String s)
lab02/src/bomb/Bomb.java:12
↓ 1 callersMethodshufflePasswordIntList
(String s)
lab02/src/bomb/Bomb.java:21
↓ 1 callersMethodsquares
Returns a map from the integers in the list to their squares. For example, if the input list is [1, 3, 6, 7], the returned map goes from 1 to 1, 3 to
hw0b/src/MapExercises.java:15
↓ 1 callersMethodstartGame
()
lab13/src/MemoryGame/MemoryGame.java:100
↓ 1 callersMethodstartUp
()
proj2a/ngordnet/browser/NgordnetServer.java:13
↓ 1 callersMethodsumInput
Uses this.input (the user's number inputs) to calculate the sum of this.input. @return sum of elements in this.input.
lab02/src/adventure/BeeCountingStage.java:84
↓ 1 callersMethodsumInput
Uses this.input (the user's number inputs) to calculate the sum of this.input. @return sum of elements in this.input.
lab03/src/adventure/BeeCountingStage.java:86
↓ 1 callersMethodsumOfElementwiseMax
Returns the sum of the element-wise max of a and b. For example if a = {1, -10, 3} and b = {0, 20, 5}, the elementwise max is {1, 20, 5}, which sums t
lab02/src/adventure/MachineStage.java:140
← previousnext →201–300 of 684, ranked by callers