- 博客(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] 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关注的人