Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGenus/cosmos
/ functions
Functions
8,543 in github.com/OpenGenus/cosmos
⨍
Functions
8,543
◇
Types & classes
1,606
↓ 3 callers
Function
removeDups
code/string_algorithms/src/remove_dups/remove_dups.js:1
↓ 3 callers
Method
reverse
(int[] p, int i, int j)
code/cellular_automaton/src/genetic_algorithm/genetic_algorithm.java:118
↓ 3 callers
Method
right
code/cellular_automaton/src/langtons_ant/langtons_ant.cpp:36
↓ 3 callers
Method
rotateL
(self, Node)
code/data_structures/src/tree/binary_tree/avl_tree/avl_tree.py.py:32
↓ 3 callers
Method
rotateLeft
(Node h)
code/data_structures/src/tree/multiway_tree/splay_tree/splay_tree.java:191
↓ 3 callers
Method
rotateR
(self, Node)
code/data_structures/src/tree/binary_tree/avl_tree/avl_tree.py.py:22
↓ 3 callers
Method
rotateRight
(Node h)
code/data_structures/src/tree/multiway_tree/splay_tree/splay_tree.java:183
↓ 3 callers
Function
run
()
code/artificial_intelligence/src/q_learning/q_learning.js:184
↓ 3 callers
Method
runOrder
test/c++/catch.hpp:5846
↓ 3 callers
Function
sNode_EdgesHead
code/graph_algorithms/src/adjacency_lists_graph_representation/adjacency_lists_in_c/lgraph_struct.c:29
↓ 3 callers
Method
scan
code/computational_geometry/src/halfplane_intersection/halfplane_intersection.cpp:31
↓ 3 callers
Function
sd
(arr)
code/mathematical_algorithms/src/std/std.js:1
↓ 3 callers
Method
search
Function to search key k in subtree rooted with this node
code/data_structures/src/tree/b_tree/b_tree/b_tree.cpp:100
↓ 3 callers
Method
sectionEnded
test/c++/catch.hpp:7800
↓ 3 callers
Function
seedRng
test/c++/catch.hpp:7240
↓ 3 callers
Method
seperateHeaderAndCode
code/compression/src/lossless_compression/huffman/huffman.cpp:376
↓ 3 callers
Method
setCost
(Integer cost)
code/graph_algorithms/src/dijkstra_shortest_path/dijkstra_shortest_path.java:45
↓ 3 callers
Method
setData
code/data_structures/src/list/singly_linked_list/singly_linked_list_with_classes.cpp:11
↓ 3 callers
Method
setUnassignedLetterPosition
(int position)
code/algorithm_applications/src/Cichelli's Perfect Hashing Alogorithm/Key.java:87
↓ 3 callers
Method
setValue
test/c++/catch.hpp:5040
↓ 3 callers
Function
show
Display Linked list. */
code/mathematical_algorithms/src/add_polynomials/add_polynomials.c:103
↓ 3 callers
Method
size
code/data_structures/src/queue/queue_using_linked_list/queue_using_linked_list.cpp:90
↓ 3 callers
Method
size
(self)
code/data_structures/src/list/singly_linked_list/singly_linked_list.py:21
↓ 3 callers
Method
size
()
code/data_structures/src/list/singly_linked_list/operations/unclassified/linked_list.java:17
↓ 3 callers
Function
sizeof
(root)
code/data_structures/src/binary_heap/binary_heap.py:13
↓ 3 callers
Method
solve
code/design_pattern/src/policy_based_design/policy_design.cpp:28
↓ 3 callers
Function
spiral_print
code/mathematical_algorithms/src/spiral_matrix/recursive_spiral_matrix.cpp:48
↓ 3 callers
Function
split_string
code/online_challenges/src/hackerrank/Electronics_Shop/Electronics_Shop.cpp:82
↓ 3 callers
Function
strassen
code/divide_conquer/src/strassen_matrix_multiplication/main.cpp:159
↓ 3 callers
Function
swap
code/randomized_algorithms/src/kth_smallest_element_algorithm/kth_smallest_element_algorithm.cpp:33
↓ 3 callers
Function
swap
(x, y int)
code/sorting/src/heap_sort/heap_sort.go:10
↓ 3 callers
Function
swap
UTILITY FUNCTIONS */
code/sorting/src/quick_sort/quick_sort_three_way.cpp:10
↓ 3 callers
Function
swap
code/dynamic_programming/src/array_median/array_median.c:3
↓ 3 callers
Method
swap
(self, fpos, spos)
code/data_structures/src/minHeap/minHeap.py:26
↓ 3 callers
Function
takeStep
code/artificial_intelligence/src/support_vector_machine/svm.c:130
↓ 3 callers
Method
toString
()
code/data_structures/src/stack/abstract_stack/cpp/array_stack.java:44
↓ 3 callers
Method
toString
code/data_structures/src/stack/abstract_stack/cpp/array_stack/array_stack.h:137
↓ 3 callers
Method
toString
()
code/dynamic_programming/src/box_stacking/box_stacking.java:114
↓ 3 callers
Function
to_bin
(decimal int)
code/mathematical_algorithms/src/integer_conversion/decimal_to_int.go:11
↓ 3 callers
Method
union
(self, u, v, set_map)
code/graph_algorithms/src/cycle_directed_graph/cycle_directed_graph.py:15
↓ 3 callers
Function
update
(RL, stateName, totalSteps)
code/artificial_intelligence/src/q_learning/q_learning.js:155
↓ 3 callers
Method
upload
()
code/design_pattern/src/OOP_patterns/proxy/protection/proxy/userproxy.java:36
↓ 3 callers
Function
vSwap
Swaps values in vector with given indices
code/selection_algorithms/src/quickselect.cpp:14
↓ 3 callers
Method
wait
* Increment the job's waiting time and recalculate it's average priority
code/operating_system/src/scheduling/multi_level_feedback_queue_scheduling/mlfq.ts:99
↓ 3 callers
Function
zeroToFive
(input int)
code/mathematical_algorithms/src/replace_0_with_5/replace_0_with_5.go:6
↓ 2 callers
Function
BinarySearch
code/languages/cpp/binary_search/binary_search_implementation.cpp:6
↓ 2 callers
Function
BuildMaxHeap
(slice []int)
code/sorting/src/heap_sort/heapsort.go:12
↓ 2 callers
Function
CREATE_NODE
code/data_structures/src/tree/heap/binomial_heap/binomial_heap.c:44
↓ 2 callers
Function
Ch
(x, y, z)
code/cryptography/src/sha/sha_256/sha_256.py:197
↓ 2 callers
Function
ComputeIntersection
code/computational_geometry/src/sutherland_hodgeman_clipping/sutherland_hodgeman_clipping.cpp:135
↓ 2 callers
Function
Correcting
(string)
code/divide_conquer/src/karatsuba_multiplication/karatsuba_multiplication.py:16
↓ 2 callers
Function
CycleSort
(arr *[]int)
code/sorting/src/cycle_sort/cycle_sort.go:15
↓ 2 callers
Method
Data
code/data_structures/src/list/singly_linked_list/singly_linked_list_with_classes.cpp:22
↓ 2 callers
Method
Delete
(key interface{})
code/data_structures/src/list/doubly_linked_list/doubly_linked_list.go:28
↓ 2 callers
Method
Delete
(item Item)
code/data_structures/src/tree/multiway_tree/splay_tree/splay_tree.go:115
↓ 2 callers
Method
Display
(self)
code/data_structures/src/DoubleLinkedList/Doubly linked list.py:33
↓ 2 callers
Method
Empty
()
code/data_structures/src/stack/reverse_stack/reverse_stack.go:36
↓ 2 callers
Method
Empty
()
code/data_structures/src/queue/reverse_queue/reverse_queue.go:37
↓ 2 callers
Function
Encode
Encode returns the morse coded representation of the message.
code/string_algorithms/src/morse_code/morsecode.go:31
↓ 2 callers
Method
ExtractMin
Extract Minimum Element
code/data_structures/src/binary_heap/binary_heap.cpp:53
↓ 2 callers
Method
Front
Returns the element at the front of the queue. Throws an exception if the queue is empty.
code/data_structures/src/queue/queue/queue.cs:86
↓ 2 callers
Method
GetVolume
Volume of OT-sphere intersection, as a function of sphere radius.
code/computational_geometry/src/sphere_tetrahedron_intersection/sphere_tetrahedron_intersection.cpp:145
↓ 2 callers
Function
Insert
Insert new node into Binary Tree
code/data_structures/src/tree/binary_tree/binary_tree/maximum_height/maximum_height.cpp:45
↓ 2 callers
Method
Insert
(key int, value interface{})
code/data_structures/src/hashs/hash_table/hash_table.go:23
↓ 2 callers
Method
IsSameCharacterSet
()
code/cryptography/src/huffman_encoding/huffman.java:103
↓ 2 callers
Function
LG_StackEmpty
* @stack A pointer to a stack struct. * @return 1 if the stack is empty, 0 otherwise. */
code/graph_algorithms/src/adjacency_lists_graph_representation/adjacency_lists_in_c/lgraph_stack.c:54
↓ 2 callers
Function
LeftRightRotate
code/data_structures/src/tree/binary_tree/avl_tree/avl_tree.c:73
↓ 2 callers
Function
MG_get
* Returns M[i][j]; */
code/graph_algorithms/src/data_structures/adjacency_matrix_c/mgraph_struct.c:71
↓ 2 callers
Function
Maj
(x, y, z)
code/cryptography/src/sha/sha_256/sha_256.py:201
↓ 2 callers
Method
MaxHeapify
(i int)
code/sorting/src/heap_sort/heapsort.go:20
↓ 2 callers
Function
Modification
(matrix, p)
code/divide_conquer/src/strassen_matrix_multiplication/strassen.py:28
↓ 2 callers
Function
New
New allocates and returns a new *TrieNode.
code/data_structures/src/tree/tree/trie/trie.go:12
↓ 2 callers
Function
NewGame
(width int, height int)
code/cellular_automaton/src/conways_game_of_life/life.go:18
↓ 2 callers
Function
Optimization
Uses triangle law to swap longer edges
code/artificial_intelligence/src/tsp/salesman.cpp:51
↓ 2 callers
Function
Part_1
(pt)
code/cryptography/src/simple_des/sdes.py:64
↓ 2 callers
Method
Peek
Gets element at the top of the stack. Throws an exception if the stack is empty.
code/data_structures/src/stack/stack/stack.cs:47
↓ 2 callers
Function
Pick
(N_val)
code/quantum_algorithms/shors_algorithm/P1_shor_primefactorization.py:384
↓ 2 callers
Function
PigeonholeSort
Pigeonhole Sort in Golang Part of Cosmos by OpenGenus Foundation PigeonholeSort sorts the given slice
code/sorting/src/pigeonhole_sort/pigeonhole_sort.go:11
↓ 2 callers
Method
Pop
()
code/data_structures/src/stack/reverse_stack/reverse_stack.go:25
↓ 2 callers
Function
Prec
A utility function to return precedence of a given operator Higher returned value means higher precedence
code/data_structures/src/stack/infix_to_postfix/infix_to_postfix.c:58
↓ 2 callers
Function
Prec
A utility function to return precedence of a given operator Higher returned value means higher precedence
code/data_structures/src/stack/infix_to_postfix/infix_to_postfix.cpp:58
↓ 2 callers
Method
PrefixSum
(idx int)
code/data_structures/src/tree/multiway_tree/fenwick_tree/fenwick_tree.go:26
↓ 2 callers
Function
PrintArray
function to print array
code/sorting/src/counting_sort/Counting_sort.php:34
↓ 2 callers
Function
PrintStack
code/data_structures/src/stack/reverse_stack/reverse_stack_without_extra_space.cpp:47
↓ 2 callers
Function
PrintStack
code/data_structures/src/stack/sort_stack/sort_stack.cpp:20
↓ 2 callers
Function
ProjLine
code/computational_geometry/src/sphere_tetrahedron_intersection/luvector.hpp:730
↓ 2 callers
Function
ProjPlane
code/computational_geometry/src/sphere_tetrahedron_intersection/luvector.hpp:830
↓ 2 callers
Function
Put_Pixel
Plot a pixel In the window at point (x, y)
code/computational_geometry/src/bresenham_line/bresenham_line2.py:40
↓ 2 callers
Function
QuickSort
code/sorting/src/median_sort/median_sort.cpp:32
↓ 2 callers
Method
RangeSum
(l int, r int)
code/data_structures/src/tree/multiway_tree/fenwick_tree/fenwick_tree.go:36
↓ 2 callers
Method
Remove
(int value)
code/data_structures/src/list/circular_linked_list/circular_linked_list.java:33
↓ 2 callers
Function
RightLeftRotate
code/data_structures/src/tree/binary_tree/avl_tree/avl_tree.c:83
↓ 2 callers
Function
SGsom
Returns recurrence Calulation for a and b
code/game_theory/src/grundy_numbers_kayle/grundy_numbers_kayle.py:1
↓ 2 callers
Method
Set
(i int, j int, b bool)
code/cellular_automaton/src/conways_game_of_life/life.go:36
↓ 2 callers
Method
SetSays
code/design_pattern/src/OOP_patterns/singleton_pattern/singleton_pattern.cpp:54
↓ 2 callers
Function
SolidAngleCap
Returns the solid angle of sphere cap contended by a cone. Apex of the cone is center of the sphere.
code/computational_geometry/src/sphere_tetrahedron_intersection/sphere_tetrahedron_intersection.cpp:17
↓ 2 callers
Function
SpaceEfficientAlignment
getting the cost associated with alignment
code/dynamic_programming/src/edit_distance/edit_distance_hirschberg.cpp:157
↓ 2 callers
Method
SubWord
(uint word, byte[,] sbox)
code/cryptography/src/aes_128/aes_csharp/helpers.cs:65
↓ 2 callers
Function
SumOfProperDivisors
formula comes from https://math.stackexchange.com/a/22723
code/mathematical_algorithms/src/amicable_numbers/amicable_numbers.go:44
↓ 2 callers
Method
Swap
(int[] array, int index1, int index2)
code/sorting/src/circle_sort/circle_sort.java:57
← previous
next →
1,001–1,100 of 8,543, ranked by callers