上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 1.原题: https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/ Given an integer number n, return the difference between the 阅读全文
posted @ 2019-12-17 15:57 Parachute黑喵 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1.原题: https://leetcode.com/problems/jewels-and-stones/ You're given strings J representing the types of stones that are jewels, and S representing the 阅读全文
posted @ 2019-12-17 10:59 Parachute黑喵 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1.原题: https://leetcode.com/problems/defanging-an-ip-address/ 这道题本身很简单, Given a valid (IPv4) IP address, return a defanged version of that IP address. 阅读全文
posted @ 2019-12-17 09:57 Parachute黑喵 阅读(370) 评论(0) 推荐(0) 编辑
摘要: Convert Binary Number in a Linked List to Integer这道题在leetcode上面算作是“easy”,然而小生我还是不会做,于是根据大佬的回答来整理一下思路以便日后复习。 https://leetcode.com/problems/convert-bina 阅读全文
posted @ 2019-12-17 09:00 Parachute黑喵 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1.重写: a.定义: 重写是子类对父类的允许访问的方法的实现过程进行重新编写, 返回值和形参都不能改变。即外壳不变,核心重写! 重写的好处在于子类可以根据需要,定义特定于自己的行为。 也就是说子类能够根据需要实现父类的方法。 重写方法不能抛出新的检查异常或者比被重写方法申明更加宽泛的异常。例子: 阅读全文
posted @ 2019-12-11 15:12 Parachute黑喵 阅读(370) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页