I hereby claim:
- I am maksadbek on github.
- I am maksadbek (https://keybase.io/maksadbek) on keybase.
- I have a public key ASDxk49bUd8ci5rY6JODHCe_JEpdyWsw-bxlyfjyWU-jtwo
To claim this, I am signing this object:
def tushar(string, pattern): | |
dp = [[False] * (len(pattern) + 1) for _ in range(len(string) + 1)] | |
dp[0][0] = True | |
for i in range(1, len(pattern)+1): | |
if pattern[i-1] == "*": | |
dp[0][i] = dp[0][i-2] | |
for i in range(1, len(string)+1): | |
for j in range(1, len(pattern)+1): |
package main | |
import ( | |
"fmt" | |
) | |
type item struct { | |
value interface{} //value as interface type to hold any data type | |
next *item | |
} |
I hereby claim:
To claim this, I am signing this object:
I have a pet project I work on, every now and then. CNoEvil.
The concept is simple enough.
What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?
• 45-minute systems interview, focus on responding to real world problems with an unhealthy service, such as a web server or database. The interview will start off at a high level troubleshooting a likely scenario, dig deeper to find the cause and some possible solutions for it. The goal is to probe your knowledge of systems at scale and under load, so keep in mind the challenges of the Facebook environment.
• Focus on things such as tooling, memory management and unix process lifecycle.
More specifically, linux troubleshooting and debugging. Understanding things like memory, io, cpu, shell, memory etc. would be pretty helpful. Knowing how to actually write a unix shell would also be a good idea. What tools might you use to debug something? On another note, this interview will likely push your boundaries of what you know (and how to implement it).
Interview is all about taking an ambiguous question of how you might build a system and letting
1:5 -- 1 * 3 * 1 | |
2:5 -- 3 * 1 * 1 | |
3:5 -- 1 * 5 * 1 | |
4:5 -- 5 * 8 * 1 | |
3:5 -- 1 * 8 * 1 | |
3:4 -- 1 * 5 * 8 | |
2:5 -- 3 * 5 * 1 | |
2:3 -- 3 * 1 * 5 | |
4:5 -- 5 * 8 * 1 | |
2:5 -- 3 * 8 * 1 |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func mergeWithRange(chans ...chan int) chan int { | |
out := make(chan int) |
#include <bits/stdc++.h> | |
using namespace std; | |
void print_set(int s) { | |
printf("%d: ", s); | |
for(int i = 1; 0 < s; i++) { | |
if((s & 1) == 1) { | |
printf("%d, ", i); |
# python3 | |
""" | |
Simplex algorithm. | |
nonbasics = [1, 2, 3] | |
basics = [4, 5, 6] | |
matrix = [ | |
[0, 0, 0, 0, 0, 0, 0], |
Directive for displayed math (math that takes the whole line for itself).
The directive supports multiple equations, which should be separated by a blank line:
.. math::
(a + b)^2 = a^2 + 2ab + b^2 (a - b)^2 = a^2 - 2ab + b^2
In addition, each single equation is set within a split
environment, which means that you can have multiple aligned lines in an equation, aligned at &
and separated by \\
: