Aug 23, 2023·edited Aug 23, 2023Liked by John Crickett
For calculating the number of bytes, should we assume a specific encoding of the characters into bytes? If not, is there a way to determine this encoding in case of reading from the standard input? I am using c++ for reference.
Here is my solution using good old C 😊 70-80% done ✔️
https://github.com/clovisphere/wc
(I just came across these challenges. Let's see how far I will go)
I am a begginner , I tried this in golang , any experienced golang engineers can leave me a review and I will correct my code . It can be found here
https://github.com/UnplugCharger/coding-challenge/blob/master/01_wc/main.go
You might like to add it to the list of shared solutions: https://github.com/CodingChallegesFYI/SharedSolutions
Sure you can add it , since I get this permission error when i try
git push --set-upstream origin golang_wc
ERROR: Permission to CodingChallegesFYI/SharedSolutions.git denied to UnplugCharger.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
You'll need to fork it and raise a PR: https://github.com/gabrieldemarmiesse/getting_started_open_source
Hi John,
I have completed this coding challenge
Here's my implementation : https://github.com/sahilraj1915374/coding_challenges/tree/main/ccwc
Awesome, please consider sharing here too: https://github.com/CodingChallegesFYI/SharedSolutions
PR raised, please review
https://github.com/CodingChallegesFYI/SharedSolutions/pull/266
I had a great time working on this!
Glad to hear it!
For calculating the number of bytes, should we assume a specific encoding of the characters into bytes? If not, is there a way to determine this encoding in case of reading from the standard input? I am using c++ for reference.
They bytes is a count of the bytes in the file, ignoring encoding.
Here is my solution in Scala: https://github.com/Ghurtchu/wc
I'm planning to add more unit tests and property based tests later.
Awesome, thanks for sharing!
Thank you John for creating such a content, looking forward to sharing this in my network and continue working on next projects too!
Hi John,
My solution with Java 17 and GraalVM for conversion to binary, 100% done :D
https://github.com/valentinsoare/wordtally