C++ Programming Questions to Ask on Interview (2017)
Some of this is straightforward.  The rest.... eesh.<p>I mean, yeah, I guess you can quiz your candidates on their knowledge of stuff like enable_if and ability to write templates based on traits like is_integer, but don&#x27;t expect that to be a good filter for anything but language minutiae.<p>And question 10... what on earth is a &quot;max heap&quot;.  I&#x27;m gathering from context that they are asking about a heap in the sense of the packed tree data structure.  I&#x27;ve used those, and written those on multiple occasions, so it&#x27;s not an impractical subject.  But (1) if you asked me the question the way it&#x27;s phrased here I&#x27;d look at you blankly and wonder if you were talking about some kind of custom allocator, and (2) <i>they don&#x27;t even want the candidate to talk about the data structure!</i>  They just want a class definition written for the thing with a handful of obvious interfaces (add, get maximum, y&#x27;know... it&#x27;s just a heap).  How is that useful to anyone?