Daily iOS
CS fundamentals and algorithmsZalandointerview report

Balanced brackets

A Swift string mixes ()[]{} and you're checking with a stack whether they nest correctly. When you hit a closing bracket, what comparison do you make?

Submit