自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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-&gt...

2019-01-24 11:07:03 100

原创 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 93

原创 用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 490

原创 快速掌握Java中UML类图及其关联关系的表示和应用

对于软件工程师来讲,经常会看到软件中的类设计的图例,或者说用UML表示的类的业务逻辑关系。为在实际开发中,能更准确的把握类图以及关联关系的应用,理解业务逻辑,下面简明扼要的对软件设计中用UML表示的类及其关系进行介绍。一、什么是UML统一建模语言(UML)是用来对软件密集系统进行描述、构造、视化和文档编制的一种语言。首先,也是最重要的一点,统一建模语言融合了Booch、OMT和OOSE方法中...

2019-01-23 23:09:42 934

转载 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 2409

原创 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 84

原创 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 83

原创 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 123

转载 CSDN-markdown编辑器使用说明

这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Ma...

2019-01-10 11:51:50 563

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除