30   Articles
30
C

# C Algorithm – Reverse a String using Stack

0 2
0 2

C Algorithm – Evaluation of Postfix Expression – Data Structure -Given a string, reverse it using stack. For example “GeeksQuiz” should be converted

C

# C Algorithm – Introduction to Stack

0 3
0 3

C Algorithm -Introduction to Stack – Data Structure -Stack is a linear data structure which follows a particular order in which the operations

C

# C Programming-Swap all odd and even bits

0 32
0 32

Given an unsigned integer, swap all odd bits with even bits. For example, if the given number is 23 (00010111), it should be converted to 43 (00101011).

C

# C Programming-Binary representation of a given number

0 6
0 6

C Programming – Binary representation of a given number – Bit Algorithm – Write a program to print Binary representation of a given number.

C

# C Program to find whether a no is power of two

0 9
0 9

C Program to find whether a no is power of two – Bit Algorithm – Given a positive integer, write a function to find if it is a power of two or not.

C

# C Programming – Find if there is a path between two vertices in a directed graph

0 7
0 7

C Programming – Find if there is a path between two vertices in a directed graph – check whether there is a path from the first given vertex to second.

C

# C Programming – Matrix Chain Multiplication

0 11
0 11

C Programming – Matrix Chain Multiplication – Dynamic Programming MCM is an optimization problem that can be solved using dynamic programming.

C

# C Programming-Backtracking Set 1 (The Knight’s tour problem)

0 2
0 2

C Programming-Backtracking Set 1 (The Knight’s tour problem) – Backtracking – Backtracking is an algorithmic paradigm that tries different solutions until finds a solution that “works”. Problems which are typically solved using backtracking technique have following property in common.

C

# C Programming-Print all possible strings that can be made by placing spaces

0 2
0 2

C Programming-Print all possible strings that can be made by placing spaces – Searching and Sorting – The idea is to use recursion and create a buffer.

C