Solution for 1st puzzle: 2u,u,u,u,2l,l,l,l,3d,d,d,d,d
A number and direction is a bridge, otherwise it's just the direction to move.