上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
  2023年1月11日
摘要: 给定一个长度为 n 的整数数组 height 。有 n 条垂线,第 i 条线的两个端点是 (i, 0) 和 (i, height[i]) 。 找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。 返回容器可以储存的最大水量。 说明:你不能倾斜容器。 示例 1: 输入:[1,8,6,2 阅读全文
posted @ 2023-01-11 23:35 Coder何 阅读(58) 评论(0) 推荐(0)
摘要: 按照国际象棋的规则,皇后可以攻击与之处在同一行或同一列或同一斜线上的棋子。 n 皇后问题 研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。 给你一个整数 n ,返回所有不同的 n 皇后问题 的解决方案。 每一种解法包含一个不同的 n 皇后问题 的棋子放置方案,该方 阅读全文
posted @ 2023-01-11 17:10 Coder何 阅读(76) 评论(0) 推荐(0)
  2023年1月8日
摘要: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou 阅读全文
posted @ 2023-01-08 15:53 Coder何 阅读(24) 评论(0) 推荐(0)
  2023年1月7日
摘要: Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the c 阅读全文
posted @ 2023-01-07 20:24 Coder何 阅读(18) 评论(0) 推荐(0)
  2022年11月1日
摘要: A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, dependi 阅读全文
posted @ 2022-11-01 01:13 Coder何 阅读(27) 评论(0) 推荐(0)
  2022年10月31日
摘要: It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c 阅读全文
posted @ 2022-10-31 23:49 Coder何 阅读(29) 评论(0) 推荐(0)
  2022年10月24日
摘要: 题目描述 If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 阅读全文
posted @ 2022-10-24 02:07 Coder何 阅读(21) 评论(0) 推荐(0)
  2022年10月23日
摘要: 题目描述 Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *...*pm^km. 输入描述: 阅读全文
posted @ 2022-10-23 23:25 Coder何 阅读(30) 评论(0) 推荐(0)
  2022年10月17日
摘要: 题目描述 Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a g 阅读全文
posted @ 2022-10-17 00:51 Coder何 阅读(20) 评论(0) 推荐(0)
  2022年10月2日
摘要: 题目描述 A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to cus 阅读全文
posted @ 2022-10-02 22:38 Coder何 阅读(25) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页

点击右上角即可分享
微信分享提示