Ad
Code
Diff
  • return function(n)
      return ('H'):rep(n)
    end
    • def theletterh(howmuchh=1):
    • for i in range(howmuchh):
    • print('H')
    • return 'H' * howmuchh
    • #H return and H print (H😀😃😁)
    • return function(n)
    • return ('H'):rep(n)
    • end
Fundamentals
Games
Code
Diff
  • return {riddle = load("\27LuaS\0\25\x93\13\n\26\n\4\8\4\8\8xV\0\0\0\0\0\0\0\0\0\0\0(w@\0\0\1\0\0\0\1\0\0\0\1\0\2\4\0\0\0\\\0\0\0N\0\xc0\0f\0\0\1&\0\x80\0\1\0\0\0\19\1"..("\0"):rep(27))}
    • local solution = {}
    • function solution.riddle(str)
    • return #str-1
    • end
    • return solution
    • return {riddle = load("\27LuaS\0\25\x93\13\n\26\n\4\8\4\8\8xV\0\0\0\0\0\0\0\0\0\0\0(w@\0\0\1\0\0\0\1\0\0\0\1\0\2\4\0\0\0\\\0\0\0N\0\xc0\0f\0\0\1&\0\x80\0\1\0\0\0\19\1"..("\0"):rep(27))}
Code
Diff
  • #include <stdbool.h>
    
    bool bool_check(bool bools[3]) {
      // saved by the padding gods
      return __builtin_popcount(*(int*)bools) > 1;
    }
    • #include <stdbool.h>
    • bool bool_check(bool bools[3]) {
    • return bools[0] + bools[1] + bools[2] > 1;
    • // saved by the padding gods
    • return __builtin_popcount(*(int*)bools) > 1;
    • }
Code
Diff
  • import re
    def remove_numbers(string):
        return ''.join(c for c in string if not c.isdigit())
    • import re
    • def remove_numbers(string):
    • return re.sub(r"[0-9]","",string)
    • return ''.join(c for c in string if not c.isdigit())