Some months ago, I became one of the many victims of a dreaded massive layoff. Due to personal issues — among them caring for my father after he fell ill with COVID — I'm still searching for a job.

In this search, I've encountered a trend that's relatively new to me: the rise of coding tests. I studied data structures and algorithms during my...