Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add swift implementation to lcci problem: No.17.25 #2823

Merged
merged 5 commits into from
May 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update README.md
  • Loading branch information
yanglbme authored May 16, 2024
commit 19642a97b0491689a74aad7b62d0ee3f751e18cc
4 changes: 2 additions & 2 deletions lcci/17.25.Word Rectangle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,11 @@ class Trie {
class Solution {
private var maxL = 0
private var maxS = 0
private var ans: [String]?
private var ans: [String] = []
private var trie = Trie()
private var t = [String]()

func maxRectangle(_ words: [String]) -> [String]? {
func maxRectangle(_ words: [String]) -> [String] {
var d = [Int: [String]]()
for word in words {
maxL = max(maxL, word.count)
Expand Down
Loading