Have you ever used recursion at work?

.

Airbnb bVgX55 Aug 8, 2018

Have you ever used recursion at work?

eBay WhatTheH Aug 8, 2018

Memory limit exceeded. There's no base/exit condition here.

Signifyd baby2351 OP Aug 8, 2018

Rarely. Only once.

Microsoft Trovador Aug 8, 2018

All the time

Signifyd baby2351 OP Aug 8, 2018

What do you do at work? Also aren't iterative solutions preferred. I've tried recursion before but it got ripped apart in a code review.

Microsoft Trovador Aug 8, 2018

Full stack developer. Not really all the time, but I've used it many times. From my point of view, recursion is preferred. I've actually ripped apart iterative solutions in CR

Amazon LastMan Aug 8, 2018

ALL. THE. TIME........ whenever I am conducting an interview that is.

New
¢ Aug 8, 2018

Once when i was writing a parser

Facebook Uyfvniufc Aug 8, 2018

Yes, I was building a json serializer. Also, if you deal with file systems or systems which have some sort of tree structure, recursion is used to traverse the tree at times.

Oath nine inch Aug 8, 2018

Few times, try functional programming it requires you to use tail recursion a lot.

Expedia anony🐭 Aug 8, 2018

A few times. Mostly when traversing a tree of some sort.

New
michalumni Aug 8, 2018

Yeah, how else do you ask someone to do Fibionacci.

Amazon LastMan Aug 8, 2018

Iteration with tabulation?

New
michalumni Aug 8, 2018

That’s option #2

New
Ngso45 Aug 8, 2018

I’ve used it once when iterating a multi-level hash map because iterative looked gross. Other than that not often.