I hereby claim:
- I am x0nu11byt3 on github.
- I am x0nu11byt3 (https://keybase.io/x0nu11byt3) on keybase.
- I have a public key whose fingerprint is 3611 378E 9F55 2535 7C14 C28E 7FB2 0695 50E8 9AF0
To claim this, I am signing this object:
#include <iostream> | |
#include <string> | |
#include <algorithm> | |
using namespace std; | |
class Karatsuba { | |
private: | |
// Remove leading zeros | |
static string stripZeros(const string &num) { | |
size_t pos = num.find_first_not_of('0'); |
#include <iostream> | |
#include <vector> | |
#include <cstdlib> | |
#include <ctime> | |
using namespace std; | |
class TernarySearch { | |
private: | |
vector<int> data; // sorted data | |
int comparisons; // count comparisons |
#include <iostream> | |
#include <vector> | |
#include <cstdlib> | |
#include <ctime> | |
using namespace std; | |
class BinarySearch { | |
private: | |
vector<int> data; // Sorted array | |
int comparisons; // Count of comparisons |
I hereby claim:
To claim this, I am signing this object:
#include <stdio.h> | |
#include <stdlib.h> | |
int main ( int argc, char** argvs ) { | |
int a = -127; | |
int b = 4; | |
int mod_ = a % b; | |
int mod_alt_a = a - b * ( a / b ); | |
// mod_alt works as alternative to modulo | |
int mod_alt = a & ( b - 1 ); |
from z3 import * | |
import struct | |
# calculate e,f,d for a given input password | |
def calc(m): | |
e = 0 | |
f = 0 | |
d = 0 | |
for i in xrange(0, len(m)): | |
c = ord(m[i]) |
#include <stdio.h> | |
#include <stdlib.h> | |
#define MAX_SIZE 50 | |
typedef struct { | |
int key; | |
char name[MAX_SIZE]; | |
char departament[MAX_SIZE]; | |
char category[MAX_SIZE]; | |
float antiquity; |
We participated as Bok Team omakase. The final score was 173 points and the team was ranked 24th (out of 505 teams). We solved the problems on days 1 to 14, 21 to 22 and 25.
'0x41444354465f57334c43304d335f37305f414443374632303134'.match(/[0-9a-f]{2}/g).map(function(c){return String.fromCharCode(parseInt(c, 16))}).join('');
#!/usr/bin/env python3 | |
import os | |
import sys | |
import paramiko | |
class SSHClient: | |
def __init__(self,hostname, port, username, password): | |
self._port = port |
#!/usr/bin/env python3 | |
import numpy as np | |
class error(Exception): pass | |
class GaussJordan(): | |
def __init__(self,x,y): | |
self.m = x | |
self.n = y | |
self.matrix = [[ 0 for i in range(x)] for j in range(y)] |