Of course they&#x27;re unrelated. The interviewer asking this doesn&#x27;t expect you to write these algorithms all day, they want to know that you have the basic mental dexterity to figure things like this out. They are, ideally, abstracted problems of the complexity that you&#x27;d be expected to be able to solve on your own.<p>There are some positions where you don&#x27;t have to care if people can really problem-solve; as long as they can tweak CSS until it works right-ish, or know the particular arcane implementation details of installing some WordPress module, they can do the job. But there are a lot more positions where you want someone who can solve the problems that need solving, pick up new technologies as needed, and just generally be a flexible and productive contributor in a way that doesn&#x27;t relate to the fiddly details of one particular technology.