LIS
Problem : 437 — The Tower of Babylon
Hints
- Every block with ( x, y, z ) can be map to six different blocks
( x, y, z )
( y, x, z )
( x, z, y )
( z, x, y )
( y, z, x )
( z, y, x ) - Push all these blocks into vector
- Sort
- LIS ( carefully check your comparison)
p.s. tuple is so cool 😍 😍 😍