摘要: 二进制文件写: 二进制文件读: 二进制文件修改: 文件拷贝: 阅读全文
posted @ 2019-01-22 22:40 Veritas_des_Liberty 阅读(252) 评论(0) 推荐(0) 编辑
摘要: We have a two dimensional matrix A where each value is 0 or 1. A move consists of choosing any row or column, and toggling each value in that row or c 阅读全文
posted @ 2019-01-22 20:19 Veritas_des_Liberty 阅读(186) 评论(0) 推荐(0) 编辑
摘要: At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bil 阅读全文
posted @ 2019-01-22 19:18 Veritas_des_Liberty 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Given a string S of digits, such as S = "123456579", we can split it into a Fibonacci-like sequence [123, 456, 579]. Formally, a Fibonacci-like sequen 阅读全文
posted @ 2019-01-22 19:01 Veritas_des_Liberty 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 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 sitting side b 阅读全文
posted @ 2019-01-22 17:57 Veritas_des_Liberty 阅读(306) 评论(0) 推荐(0) 编辑