翻转问题(对于线性结构)
其实是有这类题型的,不多也不少,也不能说有特定的一种算法,但是有其一类非常巧妙的技巧,今天好好研究了一下,用一道题来引入Face The Right Way POJ - 3276 Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of them are facing forward, like good co
原创
2017-04-24 12:14:02 ·
590 阅读 ·
0 评论