This repository contains my journey through C programming challenges on HackerRank, where I earned a 5-star rating in C programming. Each solution demonstrates different aspects of C programming, from basic syntax to advanced concepts like dynamic memory allocation, pointers, and data structures.
HelloWorld.c- Basic input/output operationsPlayingWithCharacters.c- Character and string handlingSumAndDifference.c- Basic arithmetic operationsConditionalStatementsInC.c- Control flow with if-else
Loops.c- For loop implementation with number-to-word conversionFunctionsInC.c- Function definition and usage1DArraysInC.c- Array operations and memory managementArrayReversal.c- Array manipulation algorithmsPrintingPatternUsingLoops.c- Complex pattern generationSumOfDigitsOfFiveDigitNumbers.c- Mathematical computationsBitwiseOperators.c- Bitwise operations and optimizationPrintingTokens.c- String tokenizationDigitFrequecy.c- Frequency analysisCalculateTheNthTerm.c- Recursive algorithms
PointersInC.c- Pointer manipulation and memory addressesDynamicArrayInC.c- Dynamic memory allocation with malloc/reallocStudentMarksSum.c- Array processing with conditional logicVariadicFunctionInC.c- Variable argument functions using stdargSortingArrayOfStrings.c- Custom sorting algorithms with function pointersPermutationsOfStrings.c- Complex string permutation algorithmsPostTransition.c- Advanced data structures and memory managementQueryingTheDocument.c- Multi-dimensional array handling and string parsing
- Dynamic allocation with
malloc(),calloc(),realloc() - Proper memory deallocation with
free() - Pointer arithmetic and manipulation
- Arrays (1D and multi-dimensional)
- Structures and nested structures
- Function pointers for flexible algorithms
- Variadic functions (
stdarg.h) - String manipulation and parsing
- Bitwise operations
- Recursive algorithms
- Custom sorting implementations
- Sorting algorithms with custom comparators
- String permutation generation
- Pattern recognition and generation
- Document parsing and querying
-
Clone the repository:
git clone https://github.com/yourusername/C-Programming-with-HackerRank.git cd C-Programming-with-HackerRank -
Compile any solution:
gcc filename.c -o output ./output
-
Example compilation:
gcc HelloWorld.c -o hello ./hello
| Category | Problems Solved | Difficulty |
|---|---|---|
| Basic Programming | 8 | π’ Easy |
| Functions & Recursion | 4 | π‘ Medium |
| Arrays & Strings | 6 | π‘ Medium |
| Advanced Topics | 4 | π΄ Hard |
- β Strong foundation in C programming syntax
- β Memory management expertise
- β Algorithm design and implementation
- β Problem-solving and debugging skills
- β Code optimization techniques
- β Understanding of computer memory and pointers
- HackerRank Profile: Your HackerRank Profile
- LinkedIn: Your LinkedIn Profile
- GitHub: Your GitHub Profile
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to fork this repository and submit pull requests for any improvements or additional solutions!
