Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
in my translations to the other hash cracking katas (SHA-1, SHA-256), I imported the proper header with an
#include
in the initial code. I did the same in my pending translations involving threading, SQLite, and sockets.Guiding users about available libraries sounds like a good idea, and I think that such
#include
can be added to solution setup, either as actual code, or as a commented-out suggestion that it can be one of possible ways to use utilities provided by the platform?my view is that
#include <openssl/md5.h>
should be present in the initial code. Many users are not aware that Codewars runs on Linux and that some libraries are installed, so these katas are unfair for them.You can implement MD5 from scratch :) or you can use tools provided by the platform. Documentation for C setup mentions that library
crypto
is linked with code of C kata, and you can use OpenSSL'slibcrypto
and its functions.Or you can call command line utilities available on linux (but I do not know if they are installed in the CW runner).
In C, I just brute-forced it. The main difficulty for me was importing the MD5 function on Windows. I tried linking MinGW against OpenSSL, but the MD5 function had already been deprecated. Eventually, I realized there are built-in packages in Windows:
#include <windows.h>
#include <wincrypt.h>
#pragma comment(lib, "advapi32.lib")
However, this doesn’t seem to work on Codewars. Not really surprised but what are the alternatives to access the MD5 function on the site ?
Please see this js fork adding random tests
I only took a glance at the description, and
MY LORD THATS A LOT OF NUMBERS! (especially when I start seeing letters like "e" in equations)
how is this not 3kyu?
Please clarify:
The tsp function is provided with only the matrix. Where is the 'reference solution'? How do I optimized the salesman path for a "same or lower" cost?
Thanks...
If you're looking for NodeJS built-in modules, then take a look at NodeJS v18 API docs
Well, yeah, but I am not seeing the library everybody used for solving this kata
Here: https://docs.codewars.com/languages/javascript#node-modules
If I understand correctly you can import native Node.js packages inside the codewars environment?
Where's the list of all those packages available on codewars?
I see them aswell. Closing...
Rejected for using outdated language version.
Forking is still possible, so no work is necessarily lost.
I see them all.
Loading more items...