Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asimihsan/challenges
/ functions
Functions
1,012 in github.com/asimihsan/challenges
⨍
Functions
1,012
◇
Types & classes
277
↓ 2 callers
Method
multiplyPrimeMultiplicities
( Map<Integer, Integer> first, Map<Integer, Integer> second)
hackerrank/codesprint5/MatrixTracing.java:106
↓ 2 callers
Function
multiply_prime_multiplicities
(first, second)
hackerrank/codesprint5/matrix_tracing.py:113
↓ 2 callers
Method
nodes
()
interview/DijkstraPQTest.java:163
↓ 2 callers
Method
nodes_iter
(self)
interview/general_dfs.py:34
↓ 2 callers
Method
parity1
(long input)
epi/ch5/ParityTest.java:19
↓ 2 callers
Method
parse
(String input)
interview/RPNCalculator.java:6
↓ 2 callers
Method
peek
(self)
interview/interviewcake_extended_stack.py:15
↓ 2 callers
Method
peek
(self)
interview/glassdoor/glassdoor_stack_with_queues.py:37
↓ 2 callers
Method
pop
()
epi/ch8/TowersOfHanoi.java:11
↓ 2 callers
Function
powproduct
Compute the explicit value of a factored integer given as a list of (base, exponent) pairs.
hackerrank/codesprint5/matrix_tracing.py:85
↓ 2 callers
Method
powproduct
(Map<Integer, Integer> ns)
hackerrank/codesprint5/MatrixTracing.java:86
↓ 2 callers
Method
printBinaryString
(double n)
cracking/ch05_bit_manipulation/src/ai/cracking/bitmanipulation/Problem2.java:10
↓ 2 callers
Method
processData
(byte[] data, State state)
interview/BytePlaying.java:24
↓ 2 callers
Method
put
Put key-value pair into the table. (Remove key from table is value is null). @param key Key. @param value Value.
sedgwick/redblack/src/ai/tree/RedBlackTree.java:20
↓ 2 callers
Method
queueToString
(ArrayDeque<Character> queue)
googlecodejam/alien_language/src/ai/codejam/AlienLanguage.java:102
↓ 2 callers
Function
remove_empty_tags
Given a tag name, removes all tags with that name from the soup if they have no text. Returns the new soup without modifying the given one.
topcoder/topcoder_common.py:40
↓ 2 callers
Method
rotateLeft
(Node h)
sedgwick/redblack/src/ai/tree/RedBlackTree.java:309
↓ 2 callers
Method
rotateRight
(Node h)
sedgwick/redblack/src/ai/tree/RedBlackTree.java:327
↓ 2 callers
Method
scrape_and_add_problem
Given a problem number, scrapes the problem and adds it to the directory. If provided with an opener, uses that instead of re-connect
topcoder/ProblemFolder.py:36
↓ 2 callers
Method
search
(String text)
interview/KMPTest.java:26
↓ 2 callers
Method
setBit
(int number, int index, boolean set)
codingforinterviews/CodingForInterviewsBitManipulation.java:2
↓ 2 callers
Method
setTheta
(double theta)
topcoder/srm538_div1_450/src/ai/topcoder/TurtleSpy/TurtleSpy.java:25
↓ 2 callers
Method
solve
(Reader input)
rosalind/bins/src/main/java/BinarySearch.java:7
↓ 2 callers
Method
swap
(List<T> A, int i, int j)
clrs/05_heapsort/src/ai/heapsort/Heap.java:64
↓ 2 callers
Method
toList
Convert an iterable to a list. @param iterable Iterable to iterate over. @return List<E> of elements.
sedgwick/redblack/src/ai/tree/RedBlackTreeTest.java:23
↓ 2 callers
Method
toString
()
hackerrank/HackerRankFraudPrevention.java:159
↓ 2 callers
Function
unescape
unescape HTML code refs; c.f. http://wiki.python.org/moin/EscapingHtml
topcoder/topcoder_common.py:27
↓ 2 callers
Method
updatePrefixesOrSuffixes
(Map<Character, Integer> map, Character character, int length)
interview/LongestRunningSequence.java:13
↓ 2 callers
Method
updateRuns
(Map<Character, Integer> runs, Character character, int length)
interview/LongestRunningSequence.java:7
↓ 1 callers
Method
LCA
Given Node objects that provide parent pointers in a binary tree return the least common ancestor (LCA) of the two nodes. @param n1 Node #1. @param
epi/ch9/LCAParent2.java:72
↓ 1 callers
Method
LCA
Given Node objects that provide parent pointers in a binary tree return the least common ancestor (LCA) of the two nodes. If the nodes were the same
epi/ch9/LCAParent.java:62
↓ 1 callers
Method
Node
(Integer value)
interview/LargestBST.java:6
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
interview/interviewcake_binary_search.py:54
↓ 1 callers
Method
__init__
(self)
interview/interviewcake_extended_stack.py:9
↓ 1 callers
Method
__init__
(self)
interview/cracking_stack_with_min.py:2
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
interview/topcoder_lcs.py:50
↓ 1 callers
Method
_find_predecessor_node
(self, value)
interview/skiplist.py:46
↓ 1 callers
Method
_generate_mini_signature
Returns the method signature for the problem, in the form <name>(<name>, <name>, ...) e.g. MyFunc(A, B)
topcoder/Problem.py:108
↓ 1 callers
Method
_generate_signature
Returns the method signature for the problem, in the form <return type> <name>(<type> <name>, <type> <name>, ...) e.g. long MyFunc
topcoder/Problem.py:89
↓ 1 callers
Method
_get_path_with_parents
(self, node)
interview/geeksforgeeks/geeksforgeeks_bst_preorder_successor.py:66
↓ 1 callers
Method
_is_missing_problem
Checks if this page contains a problem that is missing. Returns True if it contains the 'problem missing' text, False if not.
topcoder/TopCoderParser.py:18
↓ 1 callers
Method
_pick_height
(self)
interview/skiplist.py:55
↓ 1 callers
Function
_primes
Generate a list of the prime numbers [2, 3, ... m] where m is the largest prime <= n.
hackerrank/codesprint5/matrix_tracing.py:65
↓ 1 callers
Method
_put
(self, node, word, d)
interview/boggle_again.py:24
↓ 1 callers
Method
_scrape_piece
Scrape the HTML for a particular piece, returning the piece on success. The pieces correspond to the keys in the object dictionary.
topcoder/TopCoderParser.py:31
↓ 1 callers
Method
add
(T element)
epi/ch10/ApproximateSort.java:31
↓ 1 callers
Method
add
(int x)
interview/WindowAverageTest.java:17
↓ 1 callers
Method
add
(Integer identifier, Double priority)
interview/DijkstraPQTest.java:63
↓ 1 callers
Method
addEdge
(T from, T to, Integer weight)
hackerrank/BotClean/HackerRankBotCleanLarge.java:143
↓ 1 callers
Method
addEdge
(int v, int w)
sedgwick/scramble/src/ai/graph/Graph.java:30
↓ 1 callers
Method
addEdge
(Integer from, Integer to, Double weight)
interview/DijkstraPQTest.java:157
↓ 1 callers
Method
addRecord
(Record record)
hackerrank/HackerRankFraudPrevention.java:248
↓ 1 callers
Method
addWord
(String word)
interview/BloomFilterExperiment.java:127
↓ 1 callers
Method
adjust
(T data, int newPriority)
hackerrank/BotClean/HackerRankBotCleanLarge.java:70
↓ 1 callers
Method
adjust
(Integer identifier, Double newPriority)
interview/DijkstraPQTest.java:83
↓ 1 callers
Function
all_paths_with_sum
(tree, value, path=None)
interview/cracking_all_paths_with_sum.py:29
↓ 1 callers
Function
anagrams
What is an anagram? A string that is a permutation of another. Rather than exhaustively generate all permuatations of input_string and co
interview/glassdoor/glassdoor_anagrams.py:1
↓ 1 callers
Method
applyCommand
(String command)
topcoder/srm538_div1_450/src/ai/topcoder/TurtleSpy/TurtleSpy.java:74
↓ 1 callers
Function
approximate_subset_sum
(elements, t, epsilon, return_sub_lists=False)
spoj/JOHNNY/src/problem127.py:30
↓ 1 callers
Function
approximate_subset_sum_and_respective_elements
(elements, t, epsilon)
spoj/JOHNNY/src/problem127.py:48
↓ 1 callers
Method
areFraudulent
(Record r1, Record r2)
hackerrank/HackerRankFraudPrevention.java:216
↓ 1 callers
Function
are_leaves_same_level
(tree)
interview/geeksforgeeks/geeksforgeeks_check_if_all_leaves_at_same_level.py:12
↓ 1 callers
Function
bfs
(G, value)
interview/general_dfs.py:67
↓ 1 callers
Method
bigIntSqRootFloor
(BigInteger x)
hackerrank/codesprint5/IsFibo.java:8
↓ 1 callers
Method
bitSetToLong
(BitSet b)
hackerrank/codesprint5/SpecialMultiple.java:7
↓ 1 callers
Method
bubbleDown
(int k)
epi/ch10/mergek/MergeFiles.java:39
↓ 1 callers
Method
bubbleDown
(int i)
interview/LargestN.java:49
↓ 1 callers
Method
bubbleUp
(int k)
epi/ch10/mergek/MergeFiles.java:28
↓ 1 callers
Method
bubbleUp
(int i)
interview/LargestN.java:39
↓ 1 callers
Method
build
(self, **kwargs)
rosalind/prot/prot.py:47
↓ 1 callers
Function
build_suffix_array
(string)
rosalind/lcs/lcs.py:5
↓ 1 callers
Method
calculateCombinations
(String test, Set<String> wordsAndPrefixes)
googlecodejam/alien_language/src/ai/codejam/AlienLanguage.java:47
↓ 1 callers
Method
calculateDistance
(String input, int position, int maximumPosition)
topcoder/srm538_div2_300/src/LeftOrRight.java:41
↓ 1 callers
Function
calculate_distance
(first, second)
topcoder/problems/12545_GooseInZooDivTwo/GooseInZooDivTwo.py:52
↓ 1 callers
Function
calculate_gc_content
(string)
rosalind/gc/gc.py:7
↓ 1 callers
Method
callback
(String path)
sedgwick/scramble/src/ai/graph/Search.java:15
↓ 1 callers
Method
check
Check invariants that make this a red-black tree. @return
sedgwick/redblack/src/ai/tree/RedBlackTree.java:363
↓ 1 callers
Method
check
(int[][] array)
epi/ch6/SudokuChecker.java:39
↓ 1 callers
Method
checkColumn
(int[][] array, int column)
epi/ch6/SudokuChecker.java:2
↓ 1 callers
Method
checkRow
(int[][] array, int row)
epi/ch6/SudokuChecker.java:13
↓ 1 callers
Method
checkSubGrid
(int[][] array, int index)
epi/ch6/SudokuChecker.java:24
↓ 1 callers
Method
clean
Refreshes and re-scans the directory for problems, as well as re-creating missing files. The difference between this and __init__ is that this
topcoder/ProblemFolder.py:162
↓ 1 callers
Method
close
(self)
epi/ch12/sort_large_file.py:27
↓ 1 callers
Method
compare
(Person o1, Person o2)
cracking/ch09/Circus.java:21
↓ 1 callers
Method
compare
(Integer o1, Integer o2)
clrs/02_getting_started/src/ai/sort/IntegerComparatorAscending.java:7
↓ 1 callers
Method
concat
(byte[] first, byte[] second)
interview/BytePlaying.java:18
↓ 1 callers
Method
consume
()
epi/ch10/ApproximateSort.java:47
↓ 1 callers
Function
count
(N, C, M)
hackerrank/hackerrank_chocolate_feast.py:4
↓ 1 callers
Function
count_naive
O(n^2) approach where we go through each interval and compare it to each interval.
topcoder/problems/12578_ShoutterDiv2/ShoutterDiv2.py:90
↓ 1 callers
Function
counting_sort
(arr, k)
interview/oreilly_counting_sort.py:4
↓ 1 callers
Method
createMapped
(String original)
hackerrank/HackerRankFraudPrevention.java:84
↓ 1 callers
Method
createStripped
(String original)
hackerrank/HackerRankFraudPrevention.java:24
↓ 1 callers
Function
create_bloom_filter
(m=12000000, k=2)
hackerrank/codesprint5/a_story_of_people_and_places.py:28
↓ 1 callers
Method
currentPathToString
(Graph G, Queue<Integer> currentPath)
sedgwick/scramble/src/ai/graph/Search.java:58
↓ 1 callers
Method
delete
(int index)
exposed/03_linkedlist/src/ai/exposed/LinkedList.java:72
↓ 1 callers
Function
dfs
(G, value)
interview/general_dfs.py:55
↓ 1 callers
Method
dfs
(self, graph, node)
topcoder/problems/12545_GooseInZooDivTwo/GooseInZooDivTwo.py:76
↓ 1 callers
Method
dfsVisit
(int v, ArrayDeque<Integer> currentPath, Set<Integer> previousVertices)
sedgwick/scramble/src/ai/graph/Search.java:38
↓ 1 callers
Method
differenceBetweenSums
(Node node)
interview/DifferenceBetweenSums.java:25
↓ 1 callers
Method
distanceTo
(Node other)
hackerrank/BotClean/HackerRankBotCleanLarge.java:253
← previous
next →
201–300 of 1,012, ranked by callers