You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Array / String |[Greatest Common Divisor of Strings](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[GreatestCommonDivisorOfStrings.java](src/array_string/GreatestCommonDivisorOfStrings.java)| Easy ||
70
-
| Array / String |[Kids With the Greatest Number of Candies](https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/)|[GreatestNumberOfCandies.java](src/array_string/GreatestNumberOfCandies.java)| Easy ||
71
-
| Array / String |[Can Place Flowers](https://leetcode.com/problems/can-place-flowers/)|[CanPlaceFlowers.java](src/array_string/CanPlaceFlowers.java)| Easy ||
72
-
| Array / String |[Reverse Vowels of a String](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[ReverseVowelsOfString.java](src/array_string/ReverseVowelsOfString.java)| Easy ||
73
-
| Array / String |[Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string/)|[ReverseWordsInString.java](src/array_string/ReverseWordsInString.java)| Medium ||
74
-
| ... | ... | ... | ... ||
75
-
| Trie |[Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree)|[PrefixTrie.java](src/trie/PrefixTrie.java)| Medium ||
76
-
| Trie |[Search Suggestions System](https://leetcode.com/problems/search-suggestions-system)|[SearchSuggestionsSystem.java](src/trie/SearchSuggestionsSystem.java)| Medium ||
| Array / String |[Greatest Common Divisor of Strings](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[GreatestCommonDivisorOfStrings.java](src/array_string/GreatestCommonDivisorOfStrings.java)| Easy |
70
+
| Array / String |[Kids With the Greatest Number of Candies](https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/)|[GreatestNumberOfCandies.java](src/array_string/GreatestNumberOfCandies.java)| Easy |
71
+
| Array / String |[Can Place Flowers](https://leetcode.com/problems/can-place-flowers/)|[CanPlaceFlowers.java](src/array_string/CanPlaceFlowers.java)| Easy |
72
+
| Array / String |[Reverse Vowels of a String](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[ReverseVowelsOfString.java](src/array_string/ReverseVowelsOfString.java)| Easy |
73
+
| Array / String |[Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string/)|[ReverseWordsInString.java](src/array_string/ReverseWordsInString.java)| Medium |
74
+
| Array / String |[Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self/)|[ProductExceptSelf.java](src/array_string/ProductExceptSelf.java)| Medium |
75
+
| Array / String |[Increasing Triplet Subsequence](https://leetcode.com/problems/increasing-triplet-subsequence/)|[IncreasingTriplet.java](src/array_string/IncreasingTriplet.java)| Medium |
76
+
| Array / String |[String Compression](https://leetcode.com/problems/string-compression/)|[StringCompressor.java](src/array_string/StringCompressor.java)| Medium |
77
+
| Two Pointers |[Move Zeroes](https://leetcode.com/problems/move-zeroes/)|[ZeroMover.java](src/two_pointers/ZeroMover.java)| Easy |
78
+
| Two Pointers |[Is Subsequence](https://leetcode.com/problems/is-subsequence/)|[SubsequenceChecker.java](src/two_pointers/SubsequenceChecker.java)| Easy |
79
+
| Two Pointers |[Container With Most Water](https://leetcode.com/problems/container-with-most-water/)|[WaterContainer.java](src/two_pointers/WaterContainer.java)| Medium |
80
+
| Two Pointers |[Max Number of K-Sum Pairs](https://leetcode.com/problems/max-number-of-k-sum-pairs/)|[MaxOperationsCounter.java](src/two_pointers/MaxOperationsCounter.java)| Medium |
81
+
| ... | ... | ... | ... |
82
+
| Trie |[Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree)|[PrefixTrie.java](src/trie/PrefixTrie.java)| Medium |
83
+
| Trie |[Search Suggestions System](https://leetcode.com/problems/search-suggestions-system)|[SearchSuggestionsSystem.java](src/trie/SearchSuggestionsSystem.java)| Medium |
84
+
| ... | ... | ... | ... |
78
85
79
86
## Usage
80
87
@@ -98,7 +105,13 @@ javac ProblemName.java
98
105
java -ea ProblemName
99
106
```
100
107
101
-
If using IDEA, right-click the src folder, then select "Mark Directory" as "Sources Root". Now, Java files should benefit from all the Java IDE features of IntelliJ IDEA, including autocomplete, syntax highlighting, and more.
108
+
or if you use Java11+ run the source code file directly, without intermediate compilation:
109
+
110
+
```bash
111
+
java -ea ProblemName.java
112
+
```
113
+
114
+
If using IDEA, right-click the src folder, then select **"Mark Directory"** as **"Sources Root"**. Now, Java files should benefit from all the Java IDE features of IntelliJ IDEA, including autocomplete, debug, syntax highlighting, and more.
102
115
103
116
Remember, when using assertions in Java, ensure that you've enabled them by using the `-ea` flag when running the Java program.
0 commit comments