Skip to content

Commit 2a7bce4

Browse files
committed
commiting changes 08/14
1 parent aa78dd7 commit 2a7bce4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Feel free to add issues, comment and pull request.
4646
| Leetcode | [647. Palindromic Substrings](https://leetcode.com/problems/palindromic-substrings/) | [Java](./java/CountSubstrings.java) \| [Python](./Python/) | _O(n^2)_ | _O(1)_ | Easy | |
4747
| Leetcode | [500. Keyboard Row](https://leetcode.com/problems/keyboard-row/description/) | [Java](./java/findWords.java) \| [Python](./Python/) | _O(n)_ | _O(1)_ | Easy | |
4848
| Leetcode | [293. Flip Game](https://leetcode.com/problems/flip-game/description/) | [Java](./java/generatePossibleNextMoves.java) \| [Python](./Python/) | _O(n)_ | _O(1)_ | Easy | |
49+
| Leetcode | [521. Longest Uncommon Subsequence I](https://leetcode.com/problems/longest-uncommon-subsequence-i/description/) | [Java](./java/findLUSlength.java) \| [Python](./Python/) | _O(n)_ | _O(1)_ | Easy | |
50+
4951

5052
## HashMap
5153
| Website | Title | Solution | Time | Space | Difficulty | Note|

java/findLUSlength.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
public class Solution {
2+
public int findLUSlength(String a, String b) {
3+
4+
return a.equals(b) ? -1: Math.max(a.length(), b.length());
5+
}
6+
}

0 commit comments

Comments
 (0)