This repository contains my solutions to various Codewars coding challenges implemented in C#.
The repository is a collection of algorithm problems and their solutions, primarily focused on:
- String manipulation
- Mathematical operations
- Bit manipulation
- Regular expressions
- Algorithm implementation
| Challenge | Description |
|---|---|
| RegexValidatePinCode | Validates if a PIN code contains exactly 4 or 6 digits |
| SquareEveryDigit | Squares every digit in a number and concatenates them |
| SplitStrings | Splits strings into pairs of characters |
| OnesandZeros | Converts binary array to decimal integer |
| Digital_Root | Calculates the recursive sum of digits until a single digit remains |
| BitCounting | Counts '1' bits in binary representation of a number |
| BreakCamelCase | Inserts spaces between words in camel case strings |
| CountingDuplicates | Counts characters that appear more than once in a string |
Each solution class contains a static Solution method that can be tested through the MainProgram.cs file.
To run the solutions:
- Clone the repository
- Open the solution in Visual Studio
- Run the project to see the test cases in action
- C# 8.0+
- .NET Core