MCPcopy Create free account

hub / github.com/danialgoodwin/dev / functions

Functions980 in github.com/danialgoodwin/dev

↓ 4 callersMethodgetMaxWorthForWeight_dp_topDown
(ArrayList<Cake> cakes, final int weightCapacity)
code-practice/interview-cake/src/com/danialgoodwin/interviewcake/question/CakeThiefQuestion.java:75
↓ 4 callersMethodgetProductsExceptAtIndex
(int[] numbers)
code-practice/interview-cake/src/com/danialgoodwin/interviewcake/question/ProductOfOtherNumbersQuestion.java:46
↓ 4 callersMethodgetUserDataType
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/box2d/UserData.java:20
↓ 4 callersFunctionget_mock_module
(module_name)
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/out.py:16
↓ 4 callersFunctionget_mock_module
(module_name)
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/modulization.py:19
↓ 4 callersMethodisPrime
Returns true if input is prime, otherwise false. If input is less than two, then this will always return false. If input is greater than or equals to
code-practice/project-euler/in-java/src/com/danialgoodwin/util/PrimeUtils.java:119
↓ 4 callersFunctionis_true
(c)
code-practice/codingame.com/codingame-sponsored-contest/app.py:72
↓ 4 callersMethodlog
(String message)
code-practice/career-cup/src/com/anonsage/question/MatrixGraphTraverse.java:40
↓ 4 callersMethodlog
(String message)
code-practice/career-cup/src/com/anonsage/question/IntArrayRange.java:17
↓ 4 callersMethodlogg
(String message)
code-practice/project-euler/in-java/src/com/danialgoodwin/projecteuler/question/Q17_NumberLetterCounts.java:115
↓ 4 callersMethodreadAllLines
Returns a list of each row of string in the file. Only available for Java 7+. Example usage: `FileUtils.readAllLines("src/com/danialgoodwin/projecteul
code-practice/project-euler/in-java/src/com/danialgoodwin/util/FileUtils.java:22
↓ 4 callersMethodrender
()
game/libgdx/app/drop-simple/core/src/com/badlogic/drop/Drop.java:63
↓ 4 callersMethodupdate
(Body body)
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/stage/GameStage.java:108
↓ 3 callersMethod__init__
(self, board: Board, start_health=6)
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/out.py:158
↓ 3 callersMethodadd_item
(name)
language/ruby/project/simple-todo-list/todo_list.rb:28
↓ 3 callersFunctionb
(a)
game/libgdx/app/drop-simple/html/webapp/soundmanager2-jsmin.js:65
↓ 3 callersFunctionb
(a)
game/libgdx/app/martian-run-simple/html/webapp/soundmanager2-jsmin.js:65
↓ 3 callersMethodbodyIsEnemy
(Body body)
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/util/BodyUtils.java:21
↓ 3 callersFunctionc
(b, d)
game/libgdx/app/martian-run-simple/html/webapp/soundmanager2-jsmin.js:65
↓ 3 callersMethodcalculateTwoFactorsViaLinearSearchUsingMultiplication
The intuition for this is zigzagging up and right in a multiplication chart until the value if found or is out of bounds. Chart is symmetrical, so cou
code-practice/project-euler/in-java/src/com/danialgoodwin/util/FactorUtils.java:93
↓ 3 callersMethodcalculateWorthOfCakes
(ArrayList<Cake> cakes)
code-practice/interview-cake/src/com/danialgoodwin/interviewcake/question/CakeThiefQuestion.java:177
↓ 3 callersFunctiondebug
(message)
code-practice/codingame.com/chuck-norris/app.py:6
↓ 3 callersMethoddebugToString
Returns primes table.
code-practice/project-euler/in-java/src/com/danialgoodwin/util/PrimeUtils.java:186
↓ 3 callersMethoddispose
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/GameScreen.java:52
↓ 3 callersMethoddraw
(Batch batch, float parentAlpha)
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/actor/Enemy.java:40
↓ 3 callersMethodeat
(self, token_type)
compiler/sample/calc-minimal/calc1.py:53
↓ 3 callersMethodfactor
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-4.py:88
↓ 3 callersMethodfactor
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-3.py:77
↓ 3 callersMethodfillArrayMultiples
Fills elements of input multiples in input array with input value, except for the input multiple itself is not changed.
code-practice/project-euler/in-java/src/com/danialgoodwin/projecteuler/question/Q3_LargestPrimeFactor.java:152
↓ 3 callersMethodgcd
(int a, int b)
code-practice/code-fights/NumberOfRolls.java:96
↓ 3 callersMethodgetAverage
(long... values)
code-practice/project-euler/in-java/src/com/danialgoodwin/util/FactorUtilsSpeedTest.java:95
↓ 3 callersMethodgetPreviousNode
()
code-practice/LargestStackTest.java:148
↓ 3 callersMethodgetTextureRegions
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/box2d/EnemyUserData.java:27
↓ 3 callersMethodinsert
(Node root, int value)
code-practice/hacker-rank/data-structures/tree/BstInsertion.java:4
↓ 3 callersMethodisBalanced
Intuition: There are at most two distinct depths, and they are at most one apart. Depth-first search. Space: O(height), time: O(n)
code-practice/interview-cake/src/com/danialgoodwin/interviewcake/question/BalancedBinaryTreeQuestion.java:40
↓ 3 callersMethodmoved
(self, direction: str)
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/out.py:274
↓ 3 callersFunctionpopulateTable
()
web/tool/node-js/app-sample/node-express-mongo-page/public/javascripts/global.js:23
↓ 3 callersMethodrand5
Return a random number between 1 and 5, inclusive.
code-practice/interview-cake/src/com/danialgoodwin/interviewcake/question/Simulate7SidedDieQuestion.java:32
↓ 3 callersFunctionrenderStatus
(statusText)
platform-chrome/app-extension/practice-image-search/popup.js:91
↓ 3 callersMethodreset
()
code-practice/project-euler/in-java/src/com/danialgoodwin/util/Stopwatch.java:17
↓ 3 callersMethodterm
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-4.py:99
↓ 3 callersMethodterm
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-3.py:82
↓ 3 callersMethodtest
code-practice/project-euler/in-kotlin/src/main/kotlin/Q803_PseudorandomSequence.kt:54
↓ 3 callersMethodtoString
()
code-practice/hacker-rank/JavaPriorityQueue.java:26
↓ 2 callersMethodRemoveComments
(String S)
code-practice/code-fights/RemoveComments.java:25
↓ 2 callersMethodaddEdge
(Node node)
code-practice/hacker-rank/BfsShortestReach.java:118
↓ 2 callersMethodbodyIsGround
(Body body)
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/util/BodyUtils.java:33
↓ 2 callersMethodcalculateColumn
(int[] a, int[] b, int[] carry, int currentValueColumn)
topic/factoring/app/FactoringUtils0.java:97
↓ 2 callersMethodcalculateSequenceLengthRecursively
@param num must be a valid index in sequenceLengths
code-practice/project-euler/in-java/src/com/danialgoodwin/projecteuler/question/Q14_LongestCollatzSequence.java:62
↓ 2 callersMethodcalculateTwoFactorsViaLinearSearchUsingAddition
The intuition for this is zigzagging up and right in a multiplication chart until the value if found or is out of bounds. Chart is symmetrical, so cou
code-practice/project-euler/in-java/src/com/danialgoodwin/util/FactorUtils.java:120
↓ 2 callersMethodcalculateTwoFactorsViaPrimeFactorsSearch
Returns at most two factors of input.
code-practice/project-euler/in-java/src/com/danialgoodwin/util/FactorUtils.java:144
↓ 2 callersMethodchoose_power_to_charge
(self)
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/out.py:211
↓ 2 callersMethodclearMultiples
Clears bits that are multiples of number, but not the number itself.
code-practice/project-euler/in-java/src/com/danialgoodwin/util/PrimeUtils.java:109
↓ 2 callersFunctioncombine_into_one_file
(package_dir, main_file='__main__.py', out='_combined.py', verbose=True)
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/combine_py_files.py:169
↓ 2 callersMethodcompareTo
(Object object)
code-practice/career-cup/src/com/anonsage/question/CarRental.java:95
↓ 2 callersMethodcomplete?
language/ruby/project/simple-todo-list/todo_item.rb:8
↓ 2 callersMethodcountUnivalSubtrees
(Node root)
code-practice/career-cup/src/com/anonsage/question/UnivalBinaryTree.java:51
↓ 2 callersMethodcountUnivalSubtrees2
(Node root, int parentValue)
code-practice/career-cup/src/com/anonsage/question/UnivalBinaryTree.java:67
↓ 2 callersMethodcreateEnemy
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/stage/GameStage.java:117
↓ 2 callersMethodcreateGrids
(final GridPane gridpane)
language/java/project/javafx-game-connect-four/src/com/danialgoodwin/javafx/game/connectfour/Main.java:101
↓ 2 callersMethoddirect_hit
This should be called before silenced().
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/out.py:335
↓ 2 callersMethodequals
(Object o)
code-practice/hacker-rank/algorithms/graph-theory/BfsShortestReach.java:105
↓ 2 callersMethoderror
(self)
compiler/sample/calc-minimal/calc1.py:28
↓ 2 callersMethodexpr
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5-to-postfix.py:124
↓ 2 callersMethodexpr
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5.py:124
↓ 2 callersMethodexpr
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-4.py:111
↓ 2 callersMethodexpr
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5-to-lisp.py:124
↓ 2 callersMethodexpr
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-6.py:137
↓ 2 callersMethodexpr
()
compiler/practice/minimal-calculator-java/Calc.java:168
↓ 2 callersMethodfactor
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5-to-postfix.py:102
↓ 2 callersMethodfactor
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5.py:102
↓ 2 callersMethodfactor
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5-to-lisp.py:102
↓ 2 callersMethodfactor
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-6.py:107
↓ 2 callersMethodfactor
()
compiler/practice/minimal-calculator-java/Calc.java:139
↓ 2 callersMethodgenerateSequentialPrimesTable
Creates a table to hold sequential primes that can be accessed by `getNthPrime(int)`. The largest size of the table is INT_MAX.
code-practice/project-euler/in-java/src/com/danialgoodwin/util/PrimeUtils.java:83
↓ 2 callersMethodgetFirstFibonacciTermWithNdigits
Return the first term in the Fibonacci sequence to contain n digits, where n >= 1. Space: O(1), time: O(n), though more accurately, the rate at which
code-practice/project-euler/in-java/src/com/danialgoodwin/projecteuler/question/Q25_1000DigitFibonacciNumber.java:48
↓ 2 callersMethodgetHeight
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/enums/EnemyType.java:39
↓ 2 callersMethodgetLargestPalindromeFromProductOfTwo3DigitNumbers_v2
Solves via starting with palindrome, then determines whether or not it has 3-digit factors. Space: O(1), Time: O(n n)?, much faster than v1.
code-practice/project-euler/in-java/src/com/danialgoodwin/projecteuler/question/Q4_LargestPalindromeProduct.java:63
↓ 2 callersMethodgetNextToken
()
compiler/practice/minimal-calculator-java/Calc.java:78
↓ 2 callersMethodgetPrimes
Returns a table for whether or not all number up to input max are prime.
code-practice/project-euler/in-java/src/com/danialgoodwin/projecteuler/question/Q3_LargestPrimeFactor.java:129
↓ 2 callersMethodgetProduct
Returns the product of all the numbers in char list. Returns 0 if empty or contains non-digit.
code-practice/project-euler/in-java/src/com/danialgoodwin/projecteuler/question/Q8_LargestProductInSeries.java:106
↓ 2 callersMethodgetSumOfDivisors
Return the sum of the proper divisors for n. Return 0 for n <= 1.
code-practice/project-euler/in-java/src/com/danialgoodwin/projecteuler/question/Q21_AmicableNumbers.java:90
↓ 2 callersMethodgetToken
()
code-practice/hacker-rank/JavaPriorityQueue.java:17
↓ 2 callersMethodgetUserData
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/actor/GameActor.java:38
↓ 2 callersMethodgetWidth
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/enums/EnemyType.java:35
↓ 2 callersMethodgetX
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/enums/EnemyType.java:43
↓ 2 callersMethodgetY
()
game/libgdx/app/martian-run-simple/core/src/com/danialgoodwin/game/martianrunsample/enums/EnemyType.java:47
↓ 2 callersMethodget_next_token
Lexical analyzer (aka scanner or tokenizer)
compiler/sample/calc-minimal/calc1.py:31
↓ 2 callersMethodget_next_token
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5-to-postfix.py:41
↓ 2 callersMethodget_next_token
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5.py:41
↓ 2 callersMethodget_next_token
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-4.py:41
↓ 2 callersMethodget_next_token
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-5-to-lisp.py:41
↓ 2 callersMethodget_next_token
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-3.py:38
↓ 2 callersMethodget_next_token
(self)
compiler/practice/minimal-calculator-python/calc-interpreter-6.py:41
↓ 2 callersMethodget_possible_positions_in_torpedo_range
(self, x, y)
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/out.py:348
↓ 2 callersMethodindirect_hit
(self, x: int, y: int, direction: str)
code-practice/codingame.com/challenge__ocean_of_code/ocean_challenge/out.py:340
↓ 2 callersMethodinitialize
(name)
language/ruby/project/simple-todo-list/todo_item.rb:3
↓ 2 callersMethodisBst
(Node<Integer, String> root)
code-practice/interview-cake/src/com/danialgoodwin/interviewcake/question/BstChecker.java:40
↓ 2 callersMethodisExistsPath
(int[][] matrix, int startX, int startY, int stopX, int stopY)
code-practice/career-cup/src/com/anonsage/question/MatrixGraphTraverse.java:68
↓ 2 callersMethodisSuperbalanced
(Node root)
code-practice/interview-cake/src/com/danialgoodwin/interviewcake/question/SuperbalancedBinaryTreeQuestion.java:48
← previousnext →101–200 of 980, ranked by callers