Whiteboard Interviews

Engineering whiteboard interviews: yay or nay? https://www.keyvalues.com/blog/engineering-whiteboard-interviews-yay-or-nay Bad at whiteboard puzzles? You can still get a programming job https://codewithoutrules.com/2018/07/29/getting-a-job-without-whiteboard-puzzles/ A list of 500+ companies that don’t do whiteboard puzzles https://airtable.com/shr5TdnpVYVTpeRrN/tbluCbToxQ2knSLhh

August 9, 2018 · 1 min · birdchan

杨晓川 Chino Yang : Bayarea Pre-style

July 31, 2018 · 0 min · birdchan

Earthquake Safety Checklist

https://www.fema.gov/media-library-data/1510153676317-82124ab3b0a31ea239f60acc8d46c2ba/FEMA_B-526_Earthquake_Safety_Checklist_110217_508.pdf

July 27, 2018 · 1 min · birdchan

Organic food is better?

Is organic food really better? No pesticide used on organic food? You sure? Knowing that you are paying your premium for that, we should find out exactly how much organic food is better than conventional food. Modern Propaganda https://www.forbes.com/sites/stevensavage/2016/03/19/why-i-dont-buy-organic-and-why-you-might-want-to-either/#4188a10c69c3

July 21, 2018 · 1 min · birdchan

Dijkstra's algorithm

My version in python. The code is specific to how g, the graph matrix is defined. Here is a good explanation to why we need to get the vertex with min edge in each iteration. [code] def graphDistances(g, s): INFINITY = 9999999999 size = len(g) dist = [INFINITY] * size prev = [None] * size unvisited = set(range(size)) dist[s] = 0 while unvisited: u = findVertexWithMinDist(unvisited, dist) unvisited.remove(u) for v, edge_weight in enumerate(g[u]): if edge_weight == -1: continue my_dist = dist[u] + edge_weight if my_dist < dist[v]: dist[v] = my_dist prev[v] = u ...

July 15, 2018 · 1 min · birdchan

The nightmare videos of children's YouTube

https://www.ted.com/talks/james_bridle_the_nightmare_videos_of_childrens_youtube_and_what_s_wrong_with_the_internet_today?utm_source=newsletter_daily&utm_campaign=daily&utm_medium=email&utm_content=image__2018-06-22

July 11, 2018 · 1 min · birdchan

Founder to CEO

A nice 99-page doc for anyone out there who may want to be a CEO someday. https://docs.google.com/document/d/1ZJZbv4J6FZ8Dnb0JuMhJxTnwl-dwqx5xl0s65DE3wO8/preview#

July 3, 2018 · 1 min · birdchan

Inorder Tree Traversal - Morris Traversal

[code] # Python program to do inorder traversal without recursion and # without stack Morris inOrder Traversal # A binary tree node class Node: Constructor to create a new node def __init__(self, data): self.data = data self.left = None self.right = None # Iterative function for inorder tree traversal def MorrisTraversal(root): ...

July 1, 2018 · 1 min · birdchan

Data structures reference

https://www.interviewcake.com/data-structures-reference

July 1, 2018 · 1 min · birdchan

Find the max possible sum from all contiguous subarrays of a given array

Given an array of integers, find the maximum possible sum you can get from one of its contiguous subarrays. The subarray from which this sum comes must contain at least 1 element. For inputArray = [-2, 2, 5, -11, 6], the output should be arrayMaxConsecutiveSum2(inputArray) = 7. The contiguous subarray that gives the maximum possible sum is [2, 5], with a sum of 7. Guaranteed constraints: 3 ≤ inputArray.length ≤ 105, -1000 ≤ inputArray[i] ≤ 1000. ...

June 29, 2018 · 2 min · birdchan