上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 98 下一页
摘要: There is a strange printer with the following two special requirements: The printer can only print a sequence of the same character each time. At each 阅读全文
posted @ 2019-03-12 16:16 Veritas_des_Liberty 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Given a number n. You have to 阅读全文
posted @ 2019-03-12 15:30 Veritas_des_Liberty 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 这是课程里给的代码,自己看着讲义在里面加了些注释。 阅读全文
posted @ 2019-03-12 11:37 Veritas_des_Liberty 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are c 阅读全文
posted @ 2019-03-11 16:38 Veritas_des_Liberty 阅读(191) 评论(0) 推荐(0) 编辑
摘要: You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can follow an 阅读全文
posted @ 2019-03-11 16:02 Veritas_des_Liberty 阅读(177) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping way: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Beyond that, now th 阅读全文
posted @ 2019-03-10 22:27 Veritas_des_Liberty 阅读(292) 评论(0) 推荐(0) 编辑
摘要: In LeetCode Store, there are some kinds of items to sell. Each item has a price. However, there are some special offers, and a special offer consists 阅读全文
posted @ 2019-03-10 21:30 Veritas_des_Liberty 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Given two integers n and k, find how many different arrays consist of numbers from 1 to n such that there are exactly k inverse pairs. We define an in 阅读全文
posted @ 2019-03-10 20:30 Veritas_des_Liberty 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT contain consecutive 阅读全文
posted @ 2019-03-09 22:24 Veritas_des_Liberty 阅读(287) 评论(0) 推荐(0) 编辑
摘要: There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross the grid boundary i 阅读全文
posted @ 2019-03-08 21:51 Veritas_des_Liberty 阅读(287) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 98 下一页