Skip to content

Instantly share code, notes, and snippets.

@amilie
amilie / lyrics.md
Created November 27, 2013 01:16
"Where Does the Food Go?" (a parody of "The Fox" by Ylvis)

Where Does the Food Go?

##Verse 1

Knife goes slice,
Fork goes stab,
Spoon goes scoop,
Chopsticks go grab.

Cup goes swish,

@amilie
amilie / bst1.sql
Created May 5, 2017 19:27
My solution to the BST challenge
-- https://www.hackerrank.com/challenges/binary-search-tree-1
select node, type from (
(select N as node, "Root" as type from BST where P is null)
union
(select t1.N as node, "Leaf" as type from BST t1
left join BST t2 on t1.N = t2.P
where t2.P is null)
union
(select distinct t1.N as node, "Inner" as type from BST t1