Ad
  • Custom User Avatar

    In the Opera browser, I had to switch to bright mode using the switch at the top right corner of the CW window. In dark mode, the dark text was really hard to read.

  • Custom User Avatar

    What does the Format test do? (Using Dart 3.3)

  • Custom User Avatar

    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.

  • Custom User Avatar

    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?

  • Custom User Avatar

    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.

  • Custom User Avatar

    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's libcrypto 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).

  • Custom User Avatar

    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 ?

  • Custom User Avatar

    Please see this js fork adding random tests

  • Custom User Avatar

    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?

  • Custom User Avatar

    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...

  • Custom User Avatar

    If you're looking for NodeJS built-in modules, then take a look at NodeJS v18 API docs

  • Custom User Avatar

    Well, yeah, but I am not seeing the library everybody used for solving this kata

  • Custom User Avatar
  • Custom User Avatar

    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?

  • Custom User Avatar

    I see them aswell. Closing...

  • Loading more items...