2019年1月5日

Leetcode 773. Sliding Puzzle

摘要: Problem: On a 2x3 board, there are 5 tiles represented by the integers 1 through 5, and an empty square represented by 0. A move consists of choosing 阅读全文

posted @ 2019-01-05 17:11 周浩炜 阅读(158) 评论(0) 推荐(0) 编辑

Leetcode 765. Couples Holding Hands

摘要: Problem: N couples sit in 2N seats arranged in a row and want to hold hands. We want to know the minimum number of swaps so that every couple is sitti 阅读全文

posted @ 2019-01-05 15:07 周浩炜 阅读(226) 评论(0) 推荐(0) 编辑

导航