Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/C
/ functions
Functions
1,322 in github.com/TheAlgorithms/C
⨍
Functions
1,322
◇
Types & classes
204
↓ 1 callers
Function
createGraph
Creates a graph with V vertices and E edges
data_structures/graphs/kruskal.c:28
↓ 1 callers
Function
createGraph
Allocate memory for the entire graph structure
data_structures/graphs/dfs.c:89
↓ 1 callers
Function
createGraph
Constructs a graph with V vertices and E edges
data_structures/graphs/floyd_warshall.c:14
↓ 1 callers
Function
createGraph
Allocate memory for the entire graph structure
data_structures/graphs/topological_sort.c:111
↓ 1 callers
Function
createNFA
* @brief creates and initializes a NFA * @returns pointer to the newly created NFA */
misc/mcnaughton_yamada_thompson.c:678
↓ 1 callers
Function
createNode
* @brief creates and initializes a AST node * @param content data to initializes the node with * @returns pointer to the newly created node */
misc/mcnaughton_yamada_thompson.c:606
↓ 1 callers
Function
createNode
Allocate memory for a node
data_structures/graphs/strongly_connected_components.c:156
↓ 1 callers
Function
createNode
Allocate memory for a node
data_structures/graphs/topological_sort.c:103
↓ 1 callers
Function
createQueue
Allocates memory for our queue data structure
data_structures/graphs/bfs.c:145
↓ 1 callers
Function
createStack
Creates a stack
data_structures/graphs/strongly_connected_components.c:204
↓ 1 callers
Function
createStack
Creates a stack
data_structures/graphs/topological_sort.c:151
↓ 1 callers
Function
create_heap
data_structures/heap/min_heap.c:50
↓ 1 callers
Function
create_heap
data_structures/heap/max_heap.c:51
↓ 1 callers
Function
create_matrix
* create a square matrix of given size with random elements * \param[out] A matrix to create (must be pre-allocated in memory) * \param[in] N matrix
numerical_methods/qr_eigen_values.c:27
↓ 1 callers
Function
create_node
* creates a new node * param[in] data value to be inserted * \returns a pointer to the new node */
data_structures/binary_trees/threaded_binary_trees.c:38
↓ 1 callers
Function
create_stack
* @brief Create a Stack object * * @param cap Capacity of stack * @return DArrayStack* Newly created stack object pointer */
data_structures/stack/dynamic_stack.c:36
↓ 1 callers
Function
createnode
/////////////////////////////////////////////////////////////
data_structures/linked_list/singly_link_list_deletion.c:16
↓ 1 callers
Function
createqueue
This function initializes the queue to empty by making both front and rear as * NULL */
data_structures/linked_list/ascending_priority_queue.c:39
↓ 1 callers
Function
createqueue
This function initializes the queue to empty by making both front and rear as * NULL */
data_structures/linked_list/queue_linked_list.c:27
↓ 1 callers
Function
cycleSort
Function sort the array using Cycle sort
sorting/cycle_sort.c:26
↓ 1 callers
Function
d_func
* Return first order derivative of the function. * \f$f'(x)\f$ */
numerical_methods/newton_raphson_root.c:32
↓ 1 callers
Function
day_string
Function to convert integer month to string * \param day integer identifier of day (0 = Sunday and 7 = Saturday * \return pointer to string repres
project_euler/problem_19/sol1.c:54
↓ 1 callers
Function
decimal2Hexadecimal
function for convert decimal number to hexadecimal * number****************/
conversions/decimal_to_hexa.c:19
↓ 1 callers
Function
decimal2Octal
function for convert decimal numbers to octal numbers************/
conversions/decimal_to_octal.c:18
↓ 1 callers
Function
decimal_to_binary
* Decimal to binary using recursion algorithm. * For example, if number = 5, the function returns the decimal integer 101. * @param number positive
conversions/decimal_to_binary_recursion.c:14
↓ 1 callers
Function
decimal_to_octal
conversions/decimal_to_octal_recursion.c:6
↓ 1 callers
Function
decode
* @brief 8bit alaw to 16bit pcm * @param out signed 16bit pcm array * @param in unsigned 8bit alaw array * @param len length of alaw array * @ret
audio/alaw.c:107
↓ 1 callers
Function
delete
* This function clears the heap memory allocated by the Vector. * @params Vector* (a pointer to the Vector struct) * @returns: none */
data_structures/vector.c:37
↓ 1 callers
Function
delete
data_structures/hash_set/hash_set.c:56
↓ 1 callers
Function
delete
data_structures/dynamic_array/dynamic_array.c:51
↓ 1 callers
Function
delete
Deletion procedure, which searches for the input key in the tree and removes * it if present * @param root pointer to parent node * @param data val
data_structures/binary_trees/binary_search_tree.c:88
↓ 1 callers
Function
delete
data_structures/binary_trees/avl_tree.c:159
↓ 1 callers
Function
deleteNode
To delete a node from the tree
data_structures/binary_trees/red_black_tree.c:605
↓ 1 callers
Function
delete_bt
* deletion of a node from the tree * if the node isn't present in the tree, it takes no action. * param[in,out] root pointer to node pointer to the
data_structures/binary_trees/threaded_binary_trees.c:173
↓ 1 callers
Function
delete_from_head
* @brief Function for deletion of the first node in list * * @param head start pointer of list * @return ListNode* pointer to
data_structures/linked_list/circular_doubly_linked_list.c:111
↓ 1 callers
Function
delete_from_tail
* @brief Function for deletion of the last node in list * * @param head start pointer of list * @return ListNode* pointer to th
data_structures/linked_list/circular_doubly_linked_list.c:140
↓ 1 callers
Function
deletenode
This function will delete a node with value k from the Linked List if such a node exists */
data_structures/linked_list/circular_linked_list.c:53
↓ 1 callers
Function
dequeue
greedy_approach/dijkstra.c:24
↓ 1 callers
Function
dequeue
Returns item at front of queue and removes it from queue
data_structures/graphs/bfs.c:174
↓ 1 callers
Function
destroy
math/prime_factoriziation.c:160
↓ 1 callers
Function
destroyRule
* @brief destroys a transition rule object * @param rule pointer to the object to be deleted * @returns void */
misc/mcnaughton_yamada_thompson.c:649
↓ 1 callers
Function
destroyStack
data_structures/stack/parenthesis.c:82
↓ 1 callers
Function
destroyState
* @brief destroys a NFA state * @param state pointer to the object to be deleted * @returns void */
misc/mcnaughton_yamada_thompson.c:669
↓ 1 callers
Function
destroyqueue
data_structures/linked_list/ascending_priority_queue.c:140
↓ 1 callers
Function
destroyqueue
data_structures/linked_list/queue_linked_list.c:101
↓ 1 callers
Function
dfs
Recursive dfs approach
data_structures/graphs/dfs.c:60
↓ 1 callers
Function
dfs
Recursive dfs aproach
data_structures/graphs/strongly_connected_components.c:106
↓ 1 callers
Function
dfsPathCheck
data_structures/graphs/dfs_recursive.c:10
↓ 1 callers
Function
dijkstra
greedy_approach/dijkstra.c:35
↓ 1 callers
Function
display
data_structures/linked_list/stack_using_linked_lists.c:70
↓ 1 callers
Function
display
function to view entire stack
data_structures/stack/main.c:104
↓ 1 callers
Function
double_array
* @brief As this is stack implementation using dynamic array this function will * expand the size of the stack by twice as soon as the stack is full.
data_structures/stack/dynamic_stack.c:55
↓ 1 callers
Function
doublemode
* @brief Implementation of game vs another player. * * @returns None */
games/tic_tac_toe.c:156
↓ 1 callers
Function
down_heapify
data_structures/heap/min_heap.c:59
↓ 1 callers
Function
down_heapify
data_structures/heap/max_heap.c:60
↓ 1 callers
Function
duplicateNumber
* @brief The main function implements the search algorithm * @tparam T type of array * @param in_arr the input array * @param n size of the array
searching/floyd_cycle_detection_algorithm.c:25
↓ 1 callers
Function
editInfo
* @brief editInfo function is used to edit an element in the memoryInfo list. * @details This function is used to edit the number of bytes allocated
developer_tools/malloc_dbg.c:107
↓ 1 callers
Function
eliminate
numerical_methods/gauss_elimination.c:41
↓ 1 callers
Function
encode
* @brief 16bit pcm to 8bit alaw * @param out unsigned 8bit alaw array * @param in signed 16bit pcm array * @param len length of pcm array * @retu
audio/alaw.c:46
↓ 1 callers
Function
enque
* Puts an item into the Queue. */
data_structures/queue/queue.c:29
↓ 1 callers
Function
enqueue
greedy_approach/dijkstra.c:15
↓ 1 callers
Function
equalSubstrings
leetcode/src/1147.c:3
↓ 1 callers
Function
eraseCArray
data_structures/array/carray.c:113
↓ 1 callers
Function
error
* @brief Utility function used to print an error message to `stderr`. * It prints `str` and an implementation-defined error * message corresponding
client_server/remote_command_exec_udp_client.c:46
↓ 1 callers
Function
error
* @brief Utility function used to print an error message to `stderr`. * It prints `str` and an implementation-defined error * message corresponding
client_server/tcp_full_duplex_client.c:52
↓ 1 callers
Function
error
* @brief Utility function used to print an error message to `stderr`. * It prints `str` and an implementation-defined error * message corresponding
client_server/tcp_half_duplex_client.c:45
↓ 1 callers
Function
euler_from_quat
* Function to convert given quaternion to Euler angles. * \f{eqnarray*}{ * \phi & = & * \tan^{-1}\left[\frac{2\left(q_0q_1+q_2q_3\right)}{1-2\left(
geometry/quaternions.c:88
↓ 1 callers
Function
exact_solution
* @brief Exact solution of the problem. Used for solution comparison. * * @param[in] x independent variable * @param[in,out] y dependent varia
numerical_methods/ode_forward_euler.c:68
↓ 1 callers
Function
exact_solution
* @brief Exact solution of the problem. Used for solution comparison. * * @param[in] x independent variable * @param[in,out] y dependent varia
numerical_methods/ode_midpoint_euler.c:67
↓ 1 callers
Function
exact_solution
* @brief Exact solution of the problem. Used for solution comparison. * * @param[in] x independent variable * @param[in,out] y dependent varia
numerical_methods/ode_semi_implicit_euler.c:71
↓ 1 callers
Function
example
* @brief Example function * @returns void */
data_structures/linked_list/doubly_linked_list.c:269
↓ 1 callers
Function
exitsWord
leetcode/src/79.c:8
↓ 1 callers
Function
extended_euclidean_algorithm
* @brief performs the extended Euclidean algorithm on integer inputs a and b * * @param a first integer input * @param b second integer input * *
math/euclidean_algorithm_extended.c:69
↓ 1 callers
Function
fetch_leetcode_folder_tasks
Fetch leetcode tasks from the Leetcode
scripts/leetcode_directory_md.py:20
↓ 1 callers
Function
fib
math/fibonacci_dp.c:10
↓ 1 callers
Function
fib
* Get the \f$n^{th}\f$ and \f$n+1^{th}\f$ Fibonacci number using recursive * half-interval decimation. * \param [in] n index of Fibonacci number to
math/fibonacci_fast.c:23
↓ 1 callers
Function
fibMonaccianSearch
searching/fibonacci_search.c:4
↓ 1 callers
Function
fillOrder
Creates a topological sorting of the graph
data_structures/graphs/strongly_connected_components.c:70
↓ 1 callers
Function
fill_overlap
fills overlap with longest proper prefix which is also suffix for each index * in needle */
leetcode/src/28.c:57
↓ 1 callers
Function
find
Search procedure, which looks for the input key in the tree and returns 1 if * it's present or 0 if it's not in the tree * @param root pointer to pa
data_structures/binary_trees/binary_search_tree.c:152
↓ 1 callers
Function
findEmpty
* @brief helper function to manage empty character transitions * @param target target NFA * @param states pointer to results storage location * @pa
misc/mcnaughton_yamada_thompson.c:446
↓ 1 callers
Function
findIndex
* @brief Returns the index having minimum value using recursion * @param arr array to be sorted * @param size size of array * @return min_index ind
sorting/selection_sort_recursive.c:32
↓ 1 callers
Function
findKthSmallest
leetcode/src/230.c:10
↓ 1 callers
Function
findMax
Returns index of the maximum element in arr[0..n-1]
sorting/pancake_sort.c:21
↓ 1 callers
Function
findMaxCArray
data_structures/array/carray.c:279
↓ 1 callers
Function
findMinCArray
data_structures/array/carray.c:265
↓ 1 callers
Function
findPathBFS
data_structures/graphs/bfs_queue.c:11
↓ 1 callers
Function
findPathDFS
data_structures/graphs/dfs_recursive.c:25
↓ 1 callers
Function
forward_euler
* @brief Compute approximation using the forward-Euler * method in the given limits. * @param[in] dx step size * @param[in] x0 initial val
numerical_methods/ode_forward_euler.c:99
↓ 1 callers
Function
forward_euler_step
* @brief Compute next step approximation using the forward-Euler * method. @f[y_{n+1}=y_n + dx\cdot f\left(x_n,y_n\right)@f] * @param[in] dx step
numerical_methods/ode_forward_euler.c:82
↓ 1 callers
Function
freeTreeMemory
* @brief Frees memory when program is terminating * @param node pointer to current node * @returns void */
data_structures/binary_trees/words_alphabetical.c:52
↓ 1 callers
Function
free_memory
Clear memory allocated by ::propagate function. * @param head pointer to first allocated instance. */
math/cantor_set.c:72
↓ 1 callers
Function
func
* Continuous loop to send and receive over the socket. * Exits when "exit" is sent from commandline. * @param sockfd socket handle number */
client_server/client.c:37
↓ 1 callers
Function
func
* Continuous loop to send and receive over the socket. * Exits when "exit" is sent from commandline. * @param sockfd socket handle number */
client_server/server.c:47
↓ 1 callers
Function
func
* Return value of the function to find the root for. * \f$f(x)\f$ */
numerical_methods/newton_raphson_root.c:22
↓ 1 callers
Function
gcd
Recursive function to return gcd of a and b
math/lcm.c:11
↓ 1 callers
Function
gcd
Compute [Greatest Common Divisor * (GCD)](https://en.wikipedia.org/wiki/Greatest_common_divisor) of two numbers * using Euclids algorithm * @param
project_euler/problem_5/sol3.c:18
↓ 1 callers
Function
get
data_structures/dynamic_array/dynamic_array.c:43
↓ 1 callers
Function
getAssociativity
* @brief Helper function that returns each operator's associativity * @param operator the operator to be queried * @returns '1' if the operator is l
misc/shunting_yard.c:48
↓ 1 callers
Function
getBucketIndex
sorting/bucket_sort.c:162
← previous
next →
401–500 of 1,322, ranked by callers