Facebook Onsite question - anyone know how to solve this
Anonymous User
1684

any similar questions to this? Thanks

Input: log of events 2d array on a webpage (no guarantee of any sorting) 
format [id, timestamp, action]
e.g. ['100', '50', 'login'] is a row in list

Build/print a graph that represents the paths all users took in their browsing
As well as the times each "node" was visited
Example

(not an exact example just an idea) 

Login (2)
-- Logout (1)
----- Closed Browser (2)
-- Visit A Page (1)
Refesh (4)
-- action (num_visitors_who_did_this)
---- sub action (x)
-- action2(x)
Comments (1)