https://github.com/bpazy/leetcode-solution
LeetCode解题
https://github.com/bpazy/leetcode-solution
Last synced: 4 months ago
JSON representation
LeetCode解题
- Host: GitHub
- URL: https://github.com/bpazy/leetcode-solution
- Owner: Bpazy
- Created: 2016-04-20T14:20:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-16T04:25:22.000Z (almost 9 years ago)
- Last Synced: 2025-01-03T20:12:28.244Z (5 months ago)
- Language: Java
- Size: 67.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
LeetCode解题
[详细解题过程](http://blog.csdn.net/hanziyuan08)
在src/test/java/SolutionTest.java中写测试
**Example:** src/test/java/SolutionTest.java
```
@Test
public void testReverseVowels() throws Exception {
QADataReader reader = new QADataReader("src/test/resources/reverse_vowels.data");
for (int i = 0; i < reader.size(); i++) {
Assert.assertEquals(s.reverseVowels(reader.getRaw(i)), reader.getExpect(i));
}
}
```在/src/test/resources/*.data中写数据, 原始数据和期望值之间用 | 分隔
**Example:** src/test/resources/reverse_vowels.data
```
hello | holle
```