# Category - C Programming

## C Program Print BST keys in the given range

C Program Print BST keys in the given range - Binary Search Tree - Given two values k1 and k2 (where k1 < k2) and a root pointer to a Binary Search Tree.

## Generic Linked List in C

Generic Linked List in C - Linked List - Unlike C++ and Java, C doesn’t support generics. How to create a linked list in C that can be used.

## C/C++ Programming-Maximum of all sub arrays of size k

C/C++ Programming Maximum of all sub arrays of size k Given an array and an integer k, find the maximum for each and every contiguous sub array of size k.

## C++ Programming – Check if an array can be divided into pairs whose sum is divisible by k

Given an array of integers and a number k, write a function that returns true if given array can be divided into pairs such that sum.

## C Algorithm – Write a program function to detect loop in a linked list

C Algorithm - Write a program function to detect loop in a linked list - Linked List - Given a linked list, check if the the linked list has loop or not.

## C Program-Inorder Successor in Binary Search Tree

C Program - In order Successor in Binary Search Tree - Binary Search Tree - In order Successor is NULL for the last node in In order traversal.

## C Programming – check for pair in A[] with sum as x

Time Complexity: Depends on what sorting algorithm we use. If we use Merge Sort or Heap Sort then (-)(nlogn) in worst case.

## C Algorithm – The Stock Span Problem

C Algorithm - The Stock Span Problem - Stack - The stock span problem is a financial problem where we have a series of n daily price quotes

## C Algorithm – Write a function to reverse a linked list

C Algorithm - Write a function to reverse a linked list - Linked List - Given pointer to the head node of a linked list, the task is to reverse

## C Program Find k-th smallest element in BST

C Program Find k-th smallest element in BST - Binary Search Tree - Given root of binary search tree and K as input