Skip to content

Instantly share code, notes, and snippets.

View clock21am's full-sized avatar
🦥

Rajdeep Kaur clock21am

🦥
View GitHub Profile
@clock21am
clock21am / System Design.md
Created July 23, 2018 10:13 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@clock21am
clock21am / anagramsubstring.py
Last active August 6, 2017 15:31
Problem Anagram substring
// the added function.
class Dict {
value get(key);
put(key, value);
boolean contains(key);
}
def is_anagram(s1, s2):
<!DOCTYPE html>
<html lang="en" id="facebook" class="no_js">
<head><meta charset="utf-8" /><meta name="referrer" content="origin-when-crossorigin" id="meta_referrer" /><script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireLazy){window.requireLazy(['Env'],b);}else{window.Env=window.Env||{};b(window.Env);}}envFlush({"ajaxpipe_token":"AXgIPOh9KGEjaZlZ","lhsh":"DAQEKgp-P","khsh":"0`sj`e`rm`s-0fdu^gshdoer-0gc^eurf-3gc^eurf;1;enbtldou;fduDmdldourCxO`ld-2YLMIuuqSdptdru;qsnunuxqd;rdoe-0unjdojnx-0unjdojnx0-0gdubi^rdbsduOdv-0`sj`e`r-0q`xm`r-0StoRbs`qhof-0mhoj^q`xm`r","timeslice_heartbeat_config":{"pollIntervalMs":33,"idleGapThresholdMs":60,"ignoredTimesliceNames":{"requestAnimationFrame":true,"Event listenHandler mousemove":true,"Event listenHandler mouseover":true,"Event listenHandler mouseout":true,"Event listenHandler scroll":true},"enableOnRequire":false},"shouldLogCounters":false,"timeslice_categories":{"react_render":true,"reflow":false}});</script><style></style><script>__DEV__=0
@clock21am
clock21am / The Technical Interview Cheat Sheet.md
Created August 26, 2016 08:49 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
items.nodecreator.model.clear();
items.answerschoice.model.clear();
items.edgecreator.model.clear();
for(var i = 0 ; i < test.nodePositions.length; i++){
items.nodecreator.model.append({
"xx": test.nodePositions[i][0],
"yy": test.nodePositions[i][1],
"nodee": test1.nodeleave[i],
"rationn": test.rationn[i],
"currentstate":test1.currentstate[i]
id: nodecreator
model: ListModel{}
delegate:
Tree {
id: currentpointer
x: xx*tree.width
y: yy*tree.height
width:tree.width/5
height:tree.width/5
recwidth: currentpointer.width
State {
name:"backedge"
PropertyChanges {
target: tux
visible:false
y:tux.y
x:tux.x-10
}
},
class Some
def some
puts "some"
end
end
@clock21am
clock21am / geeks
Created November 30, 2015 04:18
algorithms
A new begining with algorithms