Skip to content

Commit 07c784a

Browse files
edit 327
1 parent 656419e commit 07c784a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Your ideas/fixes/algorithms are more than welcome!
271271
|323|[Number of Connected Components in an Undirected Graph](https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/)|[Solution](../master/src/main/java/com/fishercoder/solutions/NumberOfConnectedComponentsInAnUndirectedGraph.java)| O(?)|O(?)| Medium|
272272
|322|[Coin Change](https://leetcode.com/problems/coin-change/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_322.java)| O(?)|O(?) | Medium|
273273
|321|[Create Maximum Number](https://leetcode.com/problems/create-maximum-number/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_321.java)| O(?)|O(?) | Hard
274-
|320|[Generalized Abbreviation](https://leetcode.com/problems/generalized-abbreviation/)|[Solution](../master/src/main/java/com/fishercoder/solutions/GeneralizedAbbreviation.java)| O(n*2^n)|O(n) | Medium| Backtracking, Bit Manipulation
274+
|320|[Generalized Abbreviation](https://leetcode.com/problems/generalized-abbreviation/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_320.java)| O(n*2^n)|O(n) | Medium| Backtracking, Bit Manipulation
275275
|319|[Bulb Switcher](https://leetcode.com/problems/bulb-switcher/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_319.java)| O(1)|O(1) | Medium| Brainteaser
276276
|317|[Shortest Distance from All Buildings](https://leetcode.com/problems/shortest-distance-from-all-buildings/)|[Solution](../master/src/main/java/com/fishercoder/solutions/ShortestDistanceFromAllBuildings.java)| O(?)|O(?) | Hard|
277277
|316|[Remove Duplicate Letters](https://leetcode.com/problems/remove-duplicate-letters/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_316.java)| O(n)|O(1)| Hard| Stack, Recursion, Greedy

src/main/java/com/fishercoder/solutions/GeneralizedAbbreviation.java renamed to src/main/java/com/fishercoder/solutions/_320.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Given word = "word", return the following list (order does not matter):
1212
["word", "1ord", "w1rd", "wo1d", "wor1", "2rd", "w2d", "wo2", "1o1d", "1or1", "w1r1", "1o2", "2r1", "3d", "w3", "4"]
1313
*/
14-
public class GeneralizedAbbreviation {
14+
public class _320 {
1515

1616
public List<String> generateAbbreviations(String word) {
1717
List<String> result = new ArrayList<>();

src/test/java/com/fishercoder/GeneralizedAbbreviationTest.java renamed to src/test/java/com/fishercoder/_320Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.fishercoder;
22

3-
import com.fishercoder.solutions.GeneralizedAbbreviation;
3+
import com.fishercoder.solutions._320;
44
import org.junit.Before;
55
import org.junit.BeforeClass;
66
import org.junit.Test;
@@ -14,15 +14,15 @@
1414
/**
1515
* Created by fishercoder on 2/10/17.
1616
*/
17-
public class GeneralizedAbbreviationTest {
18-
private static GeneralizedAbbreviation test;
17+
public class _320Test {
18+
private static _320 test;
1919
private static List<String> expected;
2020
private static List<String> actual;
2121
private static String word;
2222

2323
@BeforeClass
2424
public static void setup(){
25-
test = new GeneralizedAbbreviation();
25+
test = new _320();
2626
}
2727

2828
@Before

0 commit comments

Comments
 (0)