Yes, but not in the literal sense for me. I never see any text or code but rather some abstract version of the problem I'm trying to solve. I dislike it to be honest, it makes me feel like I'm not getting any rest, especially when I wake up in the middle of the night from a code dream only to continue in that loop while I'm half awake.
One time I went to sleep after starting a take home code test for a job interview; I woke up a few hours later having some intense dreams about it and ended up knowing exactly what to do. I finished it at 4am. I didn't end up getting the job, but they said during the interview they really liked the code.
Would you mind sharing why they (said they) ultimately chose not to extend an offer? Just curious about an anecdote from a hiring/recruiting perspective.
They never gave a reason. That said, I felt like the interview with my potential team mates (one of the 3 interview rounds that day) really did not go as well as I would have liked. I could have done better describing my current work and projects. We did some whiteboard design question and ran out of time, looking back I could have done a lot better on that had I put more thought into it. I'm not bitter or anything, it was not my best in person interview by a long shot.
One time I went to sleep after starting a take home code test for a job interview; I woke up a few hours later having some intense dreams about it and ended up knowing exactly what to do. I finished it at 4am. I didn't end up getting the job, but they said during the interview they really liked the code.