We want to help teachers teach programming and/or computer science with B4X. In this thread I will try to build a collection of classic algorithms that teachers can use as part of their lessons. The first few examples are well explained in Jeff Erickson's Algorithms book...