- 博客(9)
- 收藏
- 关注
原创 21. Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1->2->4, 1->3->4Output: 1->...
2019-01-24 11:07:03
113
原创 19. Remove Nth Node From End of List
Given a linked list, remove the n-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5, and n = 2.After removing the second node from the end, the l...
2019-01-24 10:56:53
111
原创 用Java实现UML中的关系并调用函数验证结果
interface Shape { public double getArea(); public double getPeri();}class Circle implements Shape{ private double ra; private final static double PI = 3.14; public Circle(doubl...
2019-01-23 23:49:25
525
原创 快速掌握Java中UML类图及其关联关系的表示和应用
对于软件工程师来讲,经常会看到软件中的类设计的图例,或者说用UML表示的类的业务逻辑关系。为在实际开发中,能更准确的把握类图以及关联关系的应用,理解业务逻辑,下面简明扼要的对软件设计中用UML表示的类及其关系进行介绍。一、什么是UML统一建模语言(UML)是用来对软件密集系统进行描述、构造、视化和文档编制的一种语言。首先,也是最重要的一点,统一建模语言融合了Booch、OMT和OOSE方法中...
2019-01-23 23:09:42
980
转载 java中子类有没有继承父类的私有变量?
作者:KobeFan链接:https://www.zhihu.com/question/51345942/answer/145388196来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。官方文档的解释:“A subclass does not inherit the private members of its parent class. However, i...
2019-01-23 22:55:38
2434
原创 33 Search in Rotated Sorted Array
class Solution { public int search(int[] nums, int target) { if (nums == null || nums.length == 0) { return -1; } int left = 0; int right = nums.length ...
2019-01-10 23:24:45
102
原创 34 Find First and Last Position of Element in Sorted Array
class Solution { public int[] searchRange(int[] nums, int target) { int[] res = new int[]{-1, -1}; if (nums == null || nums.length == 0) { return res; } ...
2019-01-10 23:12:11
99
原创 35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.Ex...
2019-01-10 17:08:41
139
转载 优快云-markdown编辑器使用说明
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Ma...
2019-01-10 11:51:50
583
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人