This repository series contains solutions to various coding challenges from CodingChallenges.fyi. Each project is a custom implementation based on the requirements of a specific challenge, designed to address specific problems and create efficient, functional tools.
- Word Count Utility (wc)
- JSON Parser
- Compression Tool (cccmp)
- Load Balancer (cc-load-balancer)
- Command-Line Sorting Utility (cc-sort)
- Command-Line Calculator (cccalc)
- Custom Redis Server CLI (cc-redis)
- Command-Line Grep Utility (cc-grep)
- Repository: https://github.com/nullsploit01/cc-wc
- Challenge: wc Challenge on CodingChallenges.fyi
- Description:
The Word Count Utility (wc) is a custom implementation of the classic Unixwc
command. This utility counts the bytes, words, lines, and characters in a given text file or standard input. It supports input from both files and standard input through piping.
- Repository: https://github.com/nullsploit01/cc-json-parser
- Challenge: JSON Parser Challenge on CodingChallenges.fyi
- Description:
This project is a custom JSON parser designed to validate JSON files for syntax and structural correctness. The parser also runs predefined tests on JSON datasets to ensure that the files conform to expectations.
- Repository: https://github.com/nullsploit01/cc-compressor
- Challenge: Huffman Compression Challenge on CodingChallenges.fyi
- Description:
CCCMP is a custom implementation of a compression and decompression tool based on Huffman coding. The tool is designed to efficiently compress and decompress files up to 100MB in size, featuring a command-line interface for easy operation.
- Repository: https://github.com/nullsploit01/cc-load-balancer
- Challenge: Load Balancer Challenge on CodingChallenges.fyi
- Description:
This project is a custom implementation of a load balancer that efficiently distributes incoming network traffic across a number of backend servers. It checks the health of backend servers, balances the load based on their real-time status, and ensures high availability and reliability of the hosted applications. The implementation leverages Docker for easy deployment of multiple server instances and includes a command-line interface for managing configurations.
- Repository: https://github.com/nullsploit01/cc-sort
- Challenge: Sorting Challenge on CodingChallenges.fyi
- Description:
CC-Sort is a versatile command-line sorting utility that supports a variety of algorithms including Radix, Merge, Quick, Heap, and Random. Designed to handle both unique and non-unique sorting tasks, it provides options to sort data from files in a customizable manner, supporting large datasets efficiently. The tool's flexibility makes it suitable for a range of applications from educational purposes to practical data processing tasks.
- Repository: https://github.com/nullsploit01/cc-calculator
- Challenge: Calculator Challenge on CodingChallenges.fyi
- Description:
CCCalc is a command-line calculator that parses and evaluates complex arithmetic expressions accurately. Designed to process expressions involving basic operations like addition, subtraction, multiplication, and division, it handles nested operations and maintains correct order of operations. This tool is ideal for users who need a reliable and quick way to perform calculations through a CLI.
- Repository: https://github.com/nullsploit01/cc-redis
- Challenge: Redis Server Challenge on CodingChallenges.fyi
- Description:
CC-Redis is a custom CLI tool designed for managing and interacting with a Redis server. It supports an interactive mode similar toredis-cli
and provides core commands likeSET
,GET
,DEL
,PING
, andECHO
. The server communicates using the RESP protocol, ensuring compatibility with standard Redis clients, and supports custom configurations for port and host settings. CC-Redis is optimized for high throughput, achieving over 200,000 requests per second in benchmark tests forSET
andGET
commands.
- Repository: https://github.com/nullsploit01/cc-grep
- Challenge: Grep Challenge on CodingChallenges.fyi
- Description:
CC-Grep is a command-line utility designed to search for patterns in files, similar to the classicgrep
command. This tool includes options for case-insensitive search, recursive directory traversal, and inverted match to display lines that do not contain the specified pattern. It supports powerful and flexible search capabilities, making it ideal for command-line users needing efficient text searching across files and directories.