16 Comments
Aug 31, 2023Liked by John Crickett

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)

Expand full comment

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

Expand full comment
author

You might like to add it to the list of shared solutions: https://github.com/CodingChallegesFYI/SharedSolutions

Expand full comment

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.

Expand full comment
Mar 17Liked by John Crickett

Hi John,

I have completed this coding challenge

Here's my implementation : https://github.com/sahilraj1915374/coding_challenges/tree/main/ccwc

Expand full comment
author

Awesome, please consider sharing here too: https://github.com/CodingChallegesFYI/SharedSolutions

Expand full comment
Mar 17Liked by John Crickett

PR raised, please review

https://github.com/CodingChallegesFYI/SharedSolutions/pull/266

Expand full comment
Mar 10Liked by John Crickett

I had a great time working on this!

Expand full comment
author

Glad to hear it!

Expand full comment
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.

Expand full comment
author

They bytes is a count of the bytes in the file, ignoring encoding.

Expand full comment
Jun 28, 2023·edited Aug 26, 2023Liked by John Crickett

Here is my solution in Scala: https://github.com/Ghurtchu/wc

I'm planning to add more unit tests and property based tests later.

Expand full comment
author

Awesome, thanks for sharing!

Expand full comment
Jun 28, 2023Liked by John Crickett

Thank you John for creating such a content, looking forward to sharing this in my network and continue working on next projects too!

Expand full comment

Hi John,

My solution with Java 17 and GraalVM for conversion to binary, 100% done :D

https://github.com/valentinsoare/wordtally

Expand full comment