View on GitHub

hackerrank

HackerRank personal solutions

C

Introduction

Name Preview Code Difficulty
“Hello World!” in C This challenge will help you to learn to input some data and then output some data. C Easy
Playing With Characters input character, string and a sentence C Easy
Sum and Difference of Two Numbers Get started with data types. C Easy
Functions in C Learn how to write functions in C++. Create a function to find the maximum of the four numbers. C Easy
Pointers in C Learn how to declare pointers and use them. C Easy

Conditionals and Loops

Name Preview Code Difficulty
Conditional Statements in C Practice using chained conditional statements. C Easy
For Loop in C Learn how to use for loop and print the output as per the given conditions C Easy
Sum of Digits of a Five Digit Number to calculate the sum of digits of a five digit number. C Easy
Bitwise Operators Apply everything we’ve learned in this bitwise operators’ challenge. C Easy
Printing Pattern using Loops   C Medium

Arrays and Strings

Name Preview Code Difficulty
1D Arrays in C Create an array in c and sum the elements. C Medium
Array Reversal Given an array, reverse it. C Medium
Printing Tokens Given a sentence, print each word in a new line. C Medium
Digit Frequency Given a very large number, count the frequency of each digit from [0-9] C Medium
Dynamic Array in C   C Medium

Functions

Name Preview Code Difficulty
Calculate the Nth term Use recursion to solve this challenge. C Easy
Students Marks Sum An easy challenge on pointers C Easy
Sorting Array of Strings   C Hard
Permutations of Strings Find all permutations of the string array. C Medium
Variadic functions in C   C Medium
Querying the Document   C Hard

Structs and Enums

Name Preview Code Difficulty
Boxes through a Tunnel Find the volume of short enough boxes. C Easy
Small Triangles, Large Triangles Sort triangles by area C Medium
Post Transition Manage post transactions in a country C Hard
Structuring the Document   C Hard