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
↓ 3 callers
Method
equalSumSubsets
(int[] array)
interview/SubsetEqualSum.java:29
↓ 3 callers
Method
equals
(Object o)
hackerrank/BotClean/HackerRankBotClean.java:20
↓ 3 callers
Method
equals
(Object o)
topcoder/srm538_div2_300/src/LeftOrRight.java:22
↓ 3 callers
Method
exchange
(List<T> A, int i, int j)
clrs/07_quicksort/src/Quick.java:56
↓ 3 callers
Function
extract_html
Returns the HTML of a tag, in unicode, without any HTML entities or empty tags.
topcoder/topcoder_common.py:50
↓ 3 callers
Method
find
(int[] A)
epi/ch11/SortedArrayIdenticalToIndex.java:7
↓ 3 callers
Method
find
(String sequence, Node start)
codeeval/StringSubstitution.java:54
↓ 3 callers
Method
find_problem
Returns a list of problem tuples (path, number, problem) that match the search query.
topcoder/ProblemFolder.py:56
↓ 3 callers
Method
firstLarger
(int[] array, int value)
epi/ch11/FirstLarger.java:2
↓ 3 callers
Method
getNode
(int index)
exposed/03_linkedlist/src/ai/exposed/LinkedList.java:20
↓ 3 callers
Method
getNodes
()
hackerrank/BotClean/HackerRankBotCleanLarge.java:155
↓ 3 callers
Method
getPriority
()
interview/DijkstraPQTest.java:30
↓ 3 callers
Method
getX
()
topcoder/srm538_div1_450/src/ai/topcoder/TurtleSpy/TurtleSpy.java:19
↓ 3 callers
Method
getY
()
topcoder/srm538_div1_450/src/ai/topcoder/TurtleSpy/TurtleSpy.java:20
↓ 3 callers
Method
intToNode
(int v)
sedgwick/scramble/src/ai/graph/Graph.java:41
↓ 3 callers
Function
kth_largest
If A were sorted, return the (k+1)th largest element. If k is 0 return the minimum. Does so in O(n) average time.
epi/ch11/kth_largest_element.py:24
↓ 3 callers
Function
leapfrog
(arr)
interview/leapfrog.py:15
↓ 3 callers
Method
lineToSortedInts
(String line)
googlecodejam/store_credit/src/StoreCredit.java:94
↓ 3 callers
Method
load
Retrieve data from input and return another object.
interview/pymotw_abc.py:12
↓ 3 callers
Method
maxDifference
(String[] isFriend, int d)
interview/TopCoderEgalitarianism.java:2
↓ 3 callers
Method
maxHeapify
(List<T> A, Comparator<T> comp, int i, int n)
clrs/05_heapsort/src/ai/heapsort/Heap.java:38
↓ 3 callers
Method
median
()
epi/ch10/online_median/OnlineMedian.java:109
↓ 3 callers
Method
parent
(int k)
epi/ch10/mergek/MergeFiles.java:9
↓ 3 callers
Method
partition
(List<T> A, int p, int r)
clrs/07_quicksort/src/Quick.java:20
↓ 3 callers
Method
pop
()
exposed/03_linkedlist/src/ai/exposed/LinkedList.java:67
↓ 3 callers
Method
preorder_successor
(self, value)
interview/geeksforgeeks/geeksforgeeks_bst_preorder_successor.py:51
↓ 3 callers
Method
print
()
sedgwick/scramble/src/ai/com/Scramble.java:86
↓ 3 callers
Method
push
(T data)
exposed/03_linkedlist/src/ai/exposed/LinkedList.java:44
↓ 3 callers
Method
push
(T value)
epi/ch8/TowersOfHanoi.java:10
↓ 3 callers
Method
quicksort
(List<T> A, int p, int r)
clrs/07_quicksort/src/Quick.java:48
↓ 3 callers
Function
readline_ints
()
hackerrank/hackerrank_two_arrays.py:5
↓ 3 callers
Method
remove
()
interview/CustomerLog.java:62
↓ 3 callers
Function
reverse
(input)
interview/interviewcake_reverse_string_in_place.py:4
↓ 3 callers
Method
shuffle
(List<T> array)
interview/ShuffleSongs.java:36
↓ 3 callers
Function
swap
(A, i, j)
epi/ch11/kth_largest_element.py:7
↓ 3 callers
Method
swap
(int i, int j)
hackerrank/BotClean/HackerRankBotCleanLarge.java:88
↓ 3 callers
Method
toString
()
topcoder/srm538_div1_450/src/ai/topcoder/TurtleSpy/TurtleSpy.java:52
↓ 2 callers
Method
V
()
sedgwick/scramble/src/ai/graph/Graph.java:27
↓ 2 callers
Method
_get
(self, node, word, d)
interview/boggle_again.py:34
↓ 2 callers
Method
_rebalance
(self)
interview/glassdoor/glassdoor_stack_with_queues.py:53
↓ 2 callers
Method
_run_test_list
Runs a given list of tests against the given method, returning True if they all passed, False if not.
topcoder/Problem.py:209
↓ 2 callers
Method
add
(Long number)
epi/ch10/online_median/OnlineMedian.java:63
↓ 2 callers
Method
add_problem
Adds a new problem to this folder. If this problem already exists, overwrites the description files (but not any Python scripts, unles
topcoder/ProblemFolder.py:84
↓ 2 callers
Method
adj
(int v)
sedgwick/scramble/src/ai/graph/Graph.java:37
↓ 2 callers
Method
advance
(Node node, int distance)
epi/ch9/LCAParent.java:32
↓ 2 callers
Method
advanceByK
(Node<T> current, int k)
epi/ch7/OverlappingNoCycles.java:24
↓ 2 callers
Method
allPairs
(int n)
interview/CrackingAllPairs.java:8
↓ 2 callers
Method
applySubstring
(long N, long M, int i, int j)
cracking/ch05_bit_manipulation/src/ai/cracking/bitmanipulation/Problem1.java:4
↓ 2 callers
Method
binarySearch
(int[] array, int value)
interview/SortedArrayBinarySearch.java:2
↓ 2 callers
Method
binarySearch
(int[] array, int key)
interview/glassdoor/SortedArrayFindMinimumInserts.java:8
↓ 2 callers
Function
binary_search
(arr, elem, lo, hi)
interview/glassdoor/glassdoor_sorted_rotated_find.py:27
↓ 2 callers
Method
bubbleDown
(int i)
hackerrank/BotClean/HackerRankBotCleanLarge.java:122
↓ 2 callers
Method
bubbleDown
(int index)
interview/DijkstraPQTest.java:110
↓ 2 callers
Method
bubbleUp
(int i)
hackerrank/BotClean/HackerRankBotCleanLarge.java:111
↓ 2 callers
Method
bubbleUp
(int index)
interview/DijkstraPQTest.java:94
↓ 2 callers
Method
buildMaxHeap
(List<T> A, Comparator<T> comp, int n)
clrs/05_heapsort/src/ai/heapsort/Heap.java:57
↓ 2 callers
Method
compare
(Integer o1, Integer o2)
clrs/05_heapsort/src/ai/heapsort/Heap.java:9
↓ 2 callers
Method
compareTo
(Record r)
hackerrank/HackerRankFraudPrevention.java:182
↓ 2 callers
Method
compareTo
(Node<T> o)
epi/ch7/MergeTwoSinglyLinkedLists.java:11
↓ 2 callers
Function
connect_to_topcoder
Connect to TopCoder, using the given username and password. Returns a connection object that can later be used for other pages that require yo
topcoder/topcoder_common.py:59
↓ 2 callers
Method
contains
Is there a value paired with key? @param key Key. @return boolean, whether there is a value paired with key.
sedgwick/redblack/src/ai/tree/RedBlackTree.java:102
↓ 2 callers
Method
convert
(String input, int baseInput, int baseOutput)
epi/ch5/BaseConvert.java:13
↓ 2 callers
Function
count
(s, t)
topcoder/problems/12578_ShoutterDiv2/ShoutterDiv2.py:45
↓ 2 callers
Function
count
(field, dist)
topcoder/problems/12545_GooseInZooDivTwo/GooseInZooDivTwo.py:120
↓ 2 callers
Method
distance
(Location other)
topcoder/srm538_div1_450/src/ai/topcoder/TurtleSpy/TurtleSpy.java:63
↓ 2 callers
Method
equals
(Object o)
hackerrank/BotClean/HackerRankBotCleanLarge.java:237
↓ 2 callers
Method
equals
(Object o)
epi/ch10/online_median/OnlineMedian.java:40
↓ 2 callers
Function
f
(h, w, r, c)
interview/spiral.py:28
↓ 2 callers
Function
find_matching_paren
(input, pos)
interview/interviewcake_matching_parens.py:4
↓ 2 callers
Method
get
(Node x, String key, int d)
interview/BloomFilterExperiment.java:145
↓ 2 callers
Method
getBit
(int number, int index)
codingforinterviews/CodingForInterviewsBitManipulation.java:9
↓ 2 callers
Method
getData
()
sedgwick/scramble/src/ai/graph/Node.java:9
↓ 2 callers
Method
getHashBits
(String word)
interview/BloomFilterExperiment.java:95
↓ 2 callers
Method
getName
()
epi/ch8/TowersOfHanoi.java:8
↓ 2 callers
Method
getNeighbours
(T node)
hackerrank/BotClean/HackerRankBotCleanLarge.java:149
↓ 2 callers
Method
getPrimeMultiplicities
(int n)
hackerrank/codesprint5/MatrixTracing.java:74
↓ 2 callers
Method
getSignature
(String word)
pearls/02_algorithms/src/Anagrams.java:59
↓ 2 callers
Method
get_neighbours
(self, node)
interview/general_dfs.py:48
↓ 2 callers
Method
get_node
(self, value)
interview/general_dfs.py:51
↓ 2 callers
Function
get_prime_multiplicities
(n)
hackerrank/codesprint5/matrix_tracing.py:104
↓ 2 callers
Function
get_topcoder_problem_ids
Returns the first n TopCoder problem numbers from the problem listing. If given two numbers, returns all topcoder problem numbers found between th
topcoder/scraper.py:20
↓ 2 callers
Method
hasNext
()
interview/CustomerLog.java:42
↓ 2 callers
Method
height
(Node node)
epi/ch9/LCAParent.java:23
↓ 2 callers
Method
insertionSort
(List<E> inputs, final int p, final int r)
googlecodejam/store_credit/src/StoreCredit.java:25
↓ 2 callers
Method
is23
Does the tree have no red right links, and at most one (left) red link in a row on any path? @return true if the tree is a 2-3 tree, false if not.
sedgwick/redblack/src/ai/tree/RedBlackTree.java:376
↓ 2 callers
Method
isBalanced
Do all paths from root to leaf have same number of black edges? @return true if balanced, else false if not.
sedgwick/redblack/src/ai/tree/RedBlackTree.java:390
↓ 2 callers
Method
isComposite
(int k)
hackerrank/codesprint5/MatrixTracing.java:18
↓ 2 callers
Method
isEmpty
()
interview/LargestN.java:31
↓ 2 callers
Method
isPerfectSquare
(BigInteger input)
hackerrank/codesprint5/IsFibo.java:23
↓ 2 callers
Method
isPrefix
(String prefix)
sedgwick/scramble/src/ai/datastructure/Trie.java:68
↓ 2 callers
Method
isValid
(String candidate)
interview/BloomFilterExperiment.java:139
↓ 2 callers
Method
isWord
(String word)
sedgwick/scramble/src/ai/datastructure/Trie.java:74
↓ 2 callers
Function
is_balanced
(root)
interview/cracking_is_balanced.py:13
↓ 2 callers
Function
iterateSequence
(arr, n)
interview/geeksforgeeks/geeksforgeeks_iterative_difference.py:4
↓ 2 callers
Method
leftMost
(List<String> candidates, List<String> list)
epi/ch8/ReconstructTree.java:45
↓ 2 callers
Method
lineToInts
(String line)
googlecodejam/store_credit/src/StoreCredit.java:86
↓ 2 callers
Function
load_existing_problems
Given a directory, finds all problem folders. Returns two lists: - the first is a list of all valid problem files in the directory, as a tup
topcoder/ProblemFolder.py:178
↓ 2 callers
Function
max_subarray_sum
(arr)
interview/glassdoor/glassdoor_max_subarray.py:11
↓ 2 callers
Method
merge
(Node<T> L, Node<T> R)
epi/ch7/MergeTwoSinglyLinkedLists.java:18
↓ 2 callers
Method
move
(double z)
topcoder/srm538_div1_450/src/ai/topcoder/TurtleSpy/TurtleSpy.java:26
← previous
next →
101–200 of 1,012, ranked by callers