You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Ben Koshy
benkoshy
I like to build cool stuff.
ben.chenathara@gmail.com
Create wall Example updated to 2017 - (Untested code WARNING)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespaceBKTest{publicclassPie{/// <summary>/// Estimates pi based on the number of fractions we desire it to estimate by./// The way I view it: you basically have 4 * (fractions + fraction etc.)/// So I've basically abstracted the fraction component./// </summary>
namespaceBKTest{publicclassPie{/// <summary>/// Estimates pi based on the number of fractions we desire it to estimate by./// The way I view it: you basically have 4 * (element0 + element1 + element2 etc.)
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real
require_relative'data_values'#the strings of facts for each city are stored in an array here#any string in the hash is just a 'fill-in' for cities without facts yet.city_hash={:Portland=>[FactPort0,FactPort1,FactPort2,FactPort3,FactPort4],:SanFrancisco=>[FactSF0,FactSF1,FactSF2,FactSF3,FactSF4],:SantaFe=>[FactSAFE0,FactSAFE1,FactSAFE2,FactSAFE3,FactSAFE4],:Tokyo=>[FactTKY0,FactTKY1,FactTKY2,FactTKY3,FactTKY4],:Seattle=>[FactSEA0,FactSEA1,FactSEA2,FactSEA3,FactSEA4],:Vancouver=>[FactVAN0,FactVAN1,FactVAN2,FactVAN3,FactVAN4],