自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 Test

APImockstockService = mock(StockService.class);when thenReturnwhen(a.fun()).thenReturn();@RunWith@Mock@InjectMocksAssert.assertEquals()

2020-01-08 06:54:44 336

原创 [Scala]

match:equals to switchhttps://docs.scala-lang.org/tour/pattern-matching.html什么都看API就够了https://www.scala-lang.org/api/2.7.0/scala/List.html#%3A%3A%28B%29

2019-10-22 12:20:03 83

原创 Guice

This article is from this tutorial: Google GuiceWhat is module1.A module contributes configuration information, typically interface bindings, which will be used to create an injector.2.Your module ...

2019-09-25 06:14:58 293

原创 Design Patterns

ToolsUML labUse a umllab trial in eclipseUML Lab关系图总结Strategy Pattern / Policy PatternIn computer programming, the strategy pattern (also known as the policy pattern) is a behavioral software...

2019-09-21 05:53:02 527

原创 Java

https://stackoverflow.com/questions/2589741/what-is-more-efficient-system-arraycopy-or-arrays-copyof

2019-09-21 05:10:08 60

原创 [Data Structure]超经典

https://leetcode.com/problems/decode-string/

2019-09-18 06:49:00 72

原创 [Data Structure] Binary Tree

binary tree iteratorhttps://leetcode.com/problems/binary-search-tree-iterator/

2019-09-17 11:34:15 85

原创 [Data Structure] Stack and Heap

文章目录StackDecode and Encode StringStackDecode and Encode Stringhttps://leetcode.com/problems/valid-parentheses/input: ‘([)]’output: True or False多种括号问题,容易错,还是得用stack,用count是不行的。。。Trapping Rain ...

2019-09-17 11:33:47 218

原创 Python

文章目录OOPAbstract ClassString ManipulationOOPAbstract Classcreate abstract class in pythonfrom abc import ABC, abstractmethodclass AbstractOperation(ABC): def __init__(self, operand_a, opera...

2019-09-17 10:43:05 59

原创 [Data Structure] DFS

好好看一下这个文档,对方是怎么define union find这个API的https://python-algorithms.readthedocs.io/en/stable/_modules/python_algorithms/basic/union_find.html

2019-09-17 10:19:10 66

原创 Git

change nodes in branchesA -- B -- C (Master) \ D -- E (NewBranch)change to A -- B -- C -- D (Master) \ E (NewBranch)git checkout Mastergit merge Ne...

2019-09-17 10:15:13 337

原创 易错集

Array双array iteratewhile ...: if i >= m or arr[i] < arr[j]: // 这一步如果i < m但是j >= n, 第二个判断会out of bound ... else: ...

2019-08-13 00:35:52 59

空空如也

空空如也

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

TA关注的人

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