Skip to content

Instantly share code, notes, and snippets.

View wsky's full-sized avatar
🏠
Working from home

Harry wsky

🏠
Working from home
View GitHub Profile
// The code below would print overlapped A and B sequences like:
// ...
// A
// A
// B
// B
// ...
//
// Please add multi-threading protection code to make sure that
// As and Bs are printed in the order of: