One of my most challenging and productive coding sessions was on the airplane without any access to the internet.
I was after a complex algorithm in my Tempus library https://github.com/am-kantox/tempus and knowing I was not to be granted any help from strangers I managed to minimize a distraction and write it upside down in three hours.