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
↓ 1 callers
Method
solve
(int input)
hackerrank/codesprint5/SpecialMultiple.java:19
↓ 1 callers
Method
solve
()
cracking/ch08/EightQueens.java:2
↓ 1 callers
Method
solve
(int limit)
codeeval/CodeEvalGridWalk.java:78
↓ 1 callers
Method
solve1
Naive O(n^2) solution. @param array Input array. @return int, maximum height.
epi/ch6/MaximumHeight.java:25
↓ 1 callers
Method
solve3
Best O(n) solution. @param list Input list. @return int, maximum height.
epi/ch6/MaximumHeight.java:40
↓ 1 callers
Method
sort
(List<T> array)
interview/QuicksortTest.java:7
↓ 1 callers
Method
sortByValues
(Map<K, V> counts)
codeeval/BeautifulStrings.java:69
↓ 1 callers
Method
sortHelper
( List<T> array, int lo, int hi, List<T> buffer)
interview/MergeSortTest.java:13
↓ 1 callers
Method
sortLengthAscending
(String[] input)
interview/Comparators.java:23
↓ 1 callers
Method
sortLengthDescending
(String[] input)
interview/Comparators.java:29
↓ 1 callers
Function
sort_file
(input_file, output_file)
epi/ch12/sort_large_file.py:34
↓ 1 callers
Method
splitLines
Wrap one big string to a boundary, e.g. 80 characters for a terminal. Returns a list of strings that a client will probably join with a line feed char
interview/SplitLines.java:18
↓ 1 callers
Function
stackoverflow
(x_list, target)
spoj/JOHNNY/src/stackoverflow.py:11
↓ 1 callers
Method
stringToNodes
(String input)
sedgwick/scramble/src/ai/graph/Node.java:11
↓ 1 callers
Function
test_count
()
topcoder/problems/12578_ShoutterDiv2/ShoutterDiv2.py:125
↓ 1 callers
Method
test_method
Runs all examples and tests on the given method, returning True if they all passed, False if not.
topcoder/Problem.py:245
↓ 1 callers
Method
test_problems
Given a list of problem tuples (rel_path, number, name), runs the tests for each problem. Uses the method provided in the Python file
topcoder/ProblemFolder.py:139
↓ 1 callers
Function
three_sum_better
Given a desired subset size k there is a better O(n^(k-1)) solution. How? For the three-sum case we are looking for: a + b + c = 0 this
interview/three_sum.py:21
↓ 1 callers
Function
three_sum_naive
Given a desired subset size k there is an O(n^k) solution. Just generate all possible combinations, sum them, and if 0 print it out.
interview/three_sum.py:10
↓ 1 callers
Method
toRoman
(int input)
codeeval/CodeEvalRomanNumerals.java:47
↓ 1 callers
Method
toString
()
hackerrank/BotClean/HackerRankBotCleanLarge.java:232
↓ 1 callers
Method
toString
()
hackerrank/BotClean/HackerRankBotClean.java:15
↓ 1 callers
Method
toString
()
sedgwick/scramble/src/ai/graph/Node.java:25
↓ 1 callers
Method
toString
()
epi/ch8/ReconstructTree.java:11
↓ 1 callers
Method
toString
()
epi/ch10/online_median/OnlineMedian.java:36
↓ 1 callers
Method
toString
()
epi/ch10/mergek/MergeFiles.java:110
↓ 1 callers
Method
toString
()
codeeval/StringSubstitution.java:17
↓ 1 callers
Method
toString
()
codeeval/StringSubstitution.java:91
↓ 1 callers
Method
to_html
Returns the problem, as an HTML string.
topcoder/Problem.py:292
↓ 1 callers
Method
to_html_file
Saves the problem in HTML format to the given filename. Writes in the given html encoding.
topcoder/Problem.py:319
↓ 1 callers
Method
to_json_file
Saves the problem in JSON format to the given filename.
topcoder/Problem.py:285
↓ 1 callers
Method
to_python
Returns a Python file, with the method header, according to the specified python template.
topcoder/Problem.py:268
↓ 1 callers
Method
to_python_file
Saves Python text to a file, with the method header, according to the specified python template.
topcoder/Problem.py:273
↓ 1 callers
Function
token_callback
(t)
rosalind/prot/prot.py:67
↓ 1 callers
Function
trim_list
(input_list, delta)
spoj/JOHNNY/src/problem127.py:19
↓ 1 callers
Function
two_numbers_odd_times
(arr)
interview/careercup_array_two_numbers_odd_times.py:11
↓ 1 callers
Method
visit
()
sedgwick/scramble/src/ai/graph/Search.java:30
Method
Anagrams
()
pearls/02_algorithms/src/Anagrams.java:31
Method
BloomFilterSpellChecker
(int m, int k)
interview/BloomFilterExperiment.java:89
Method
CircularQueue
(int capacity)
epi/ch8/CircularQueueTest.java:15
Method
Coordinate
(int x, int y)
interview/FindIslands.java:11
Method
E
()
sedgwick/scramble/src/ai/graph/Graph.java:28
Method
EmailAddress
(String original)
hackerrank/HackerRankFraudPrevention.java:19
Method
FileLineReader
(String filePath)
interview/CustomerLog.java:23
Method
FraudDetector
(Rule rule, int totalRecords)
hackerrank/HackerRankFraudPrevention.java:238
Method
Graph
(Iterable<Node> nodes)
sedgwick/scramble/src/ai/graph/Graph.java:17
Method
Graph
(String filepath)
interview/DijkstraPQTest.java:138
Method
InputAndPosition
(String input, Integer position)
topcoder/srm538_div2_300/src/LeftOrRight.java:12
Method
Iterator
()
interview/BloomFilterExperiment.java:26
Method
KMP
(String pattern)
interview/KMPTest.java:9
Method
KTreeNode
()
interview/LevelOrderTreePrint.java:12
Method
Location
(double x, double y, double theta)
topcoder/srm538_div1_450/src/ai/topcoder/TurtleSpy/TurtleSpy.java:15
Method
Log
(String path)
epi/ch10/mergek/MergeFiles.java:69
Method
MappedField
(String original, Map<String, String> mappings)
hackerrank/HackerRankFraudPrevention.java:78
Method
MarkedLinkedList
(String input)
codeeval/StringSubstitution.java:44
Method
MinHeap
(int maxSize)
interview/LargestN.java:10
Method
Mlfsr16
(int seed)
pearls/01_oyster/mlfsr/src/ai/mlfsr/Mlfsr16.java:19
Method
MyPathCallback
(Trie T)
sedgwick/scramble/src/ai/com/Scramble.java:61
Method
MyPathPredicate
(Trie T)
sedgwick/scramble/src/ai/com/Scramble.java:48
Method
Node
(T data, int priority)
hackerrank/BotClean/HackerRankBotCleanLarge.java:14
Method
Node
(int row, int col)
hackerrank/BotClean/HackerRankBotCleanLarge.java:227
Method
Node
(int row, int col)
hackerrank/BotClean/HackerRankBotClean.java:10
Method
Node
(T data)
exposed/03_linkedlist/src/ai/exposed/Node.java:10
Method
Node
(Key key, Value value, int N, Color color)
sedgwick/redblack/src/ai/tree/RedBlackTree.java:259
Method
Node
(char data)
sedgwick/scramble/src/ai/graph/Node.java:21
Method
Node
(T value)
epi/ch8/InOrderIterative.java:9
Method
Node
(String value)
epi/ch8/ReconstructTree.java:9
Method
Node
(T data)
epi/ch7/MergeTwoSinglyLinkedLists.java:4
Method
Node
(T value)
epi/ch7/OverlappingNoCycles.java:5
Method
Node
(Long value)
epi/ch10/online_median/OnlineMedian.java:32
Method
Node
(Integer value)
epi/ch14/HigherKey.java:27
Method
Node
(String value)
epi/ch9/LCAParent2.java:20
Method
Node
(int value)
epi/ch9/KUnbalanced.java:15
Method
Node
(String value)
epi/ch9/LCAParent.java:14
Method
Node
(int value)
interview/PathsWithSum.java:13
Method
Node
(Integer identifier, Double priority)
interview/DijkstraPQTest.java:24
Method
Node
()
interview/DifferenceBetweenSums.java:8
Method
Node
()
codeeval/StringSubstitution.java:29
Method
Pair
(F first, S second)
epi/ch9/KUnbalanced.java:28
Method
Person
(int height, int weight)
cracking/ch09/Circus.java:9
Method
Point
(int x, int y)
codeeval/CodeEvalGridWalk.java:25
Method
PrimsMST
(Graph<T> g)
hackerrank/BotClean/HackerRankBotCleanLarge.java:191
Method
Problem
(int credit, String items)
googlecodejam/store_credit/src/StoreCredit.java:132
Method
Quick
()
clrs/07_quicksort/src/Quick.java:7
Method
Record
(String line)
hackerrank/HackerRankFraudPrevention.java:147
Method
Rule
(String[] same, String[] diff)
hackerrank/HackerRankFraudPrevention.java:191
Method
Search
(Graph G, PathPredicate pathPredicate, PathCallback pathCallback)
sedgwick/scramble/src/ai/graph/Search.java:22
Method
Sieve
()
hackerrank/codesprint5/MatrixTracing.java:12
Method
Singleton
()
codingforinterviews/CodingForInterviewsSingleton.java:10
Method
Song
(String name)
interview/ShuffleSongs.java:7
Method
StackWithName
(String name)
epi/ch8/TowersOfHanoi.java:7
Method
State
(String original)
hackerrank/HackerRankFraudPrevention.java:132
Method
StreetAddress
(String original)
hackerrank/HackerRankFraudPrevention.java:119
Method
Substitution
(String from, String replacement)
codeeval/StringSubstitution.java:13
Method
Trie
(String filter)
sedgwick/scramble/src/ai/datastructure/Trie.java:84
Method
WindowAverage
(int n)
interview/WindowAverageTest.java:9
Method
__cmp__
(self, other)
topcoder/problems/12578_ShoutterDiv2/ShoutterDiv2.py:22
Method
__contains__
(self, key)
interview/boggle1.py:63
Method
__del__
(self)
epi/ch12/sort_large_file.py:30
Method
__eq__
(self, other)
topcoder/problems/12578_ShoutterDiv2/ShoutterDiv2.py:14
← previous
next →
501–600 of 1,012, ranked by callers