HackerRank C

Querying the Document in C – Hacker Rank Solution

A document is represented as a collection paragraphs, a paragraph is represented as a collection of sentences, a sentence is represented as a collection of words and a word is represented as a collection of lower-case ([a-z]) and upper-case ([A-Z]) English characters. You will convert a raw text document into its component paragraphs, sentences and …

Querying the Document in C – Hacker Rank Solution Read More »

Variadic functions in C – Hacker Rank Solution

Variadic functions are functions which take a variable number of arguments. In C programming, a variadic function will contribute to the flexibility of the program that you are developing. The declaration of a variadic function starts with the declaration of at least one named variable, and uses an ellipsis as the last parameter, e.g.  int …

Variadic functions in C – Hacker Rank Solution Read More »

Bitwise Operators in C – Hacker Rank Solution

Objective This challenge will let you learn about bitwise operators in C.Inside the CPU, mathematical operations like addition, subtraction, multiplication and division are done in bit-level. To perform bit-level operations in C programming, bitwise operators are used which are explained below.  Bitwise AND operator & The output of bitwise AND is 1 if the corresponding …

Bitwise Operators in C – Hacker Rank Solution Read More »

Permutations of Strings in C – Hacker Rank Solution

Strings are usually ordered in lexicographical order. That means they are ordered by comparing their leftmost different characters. For example abc < abd, because c < d. Also z > yyy because z > y. If one string is an exact prefix of the other it is lexicographically smaller, e.g., gh < ghij. Given an array of strings sorted in lexicographical …

Permutations of Strings in C – Hacker Rank Solution Read More »