René's URL Explorer Experiment


Title: GitHub - Lz4Code/leetcode_swift4: LeetCode Solutions in Swift 4 · GitHub

Open Graph Title: GitHub - Lz4Code/leetcode_swift4: LeetCode Solutions in Swift 4

X Title: GitHub - Lz4Code/leetcode_swift4: LeetCode Solutions in Swift 4

Description: LeetCode Solutions in Swift 4. Contribute to Lz4Code/leetcode_swift4 development by creating an account on GitHub.

Open Graph Description: LeetCode Solutions in Swift 4. Contribute to Lz4Code/leetcode_swift4 development by creating an account on GitHub.

X Description: LeetCode Solutions in Swift 4. Contribute to Lz4Code/leetcode_swift4 development by creating an account on GitHub.

Opengraph URL: https://github.com/Lz4Code/leetcode_swift4

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:e04bc4a4-8755-b7a3-d44f-e6d8480b67d2
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idA9B8:344CCD:16BC61:1EAF06:6A551E00
html-safe-noncef933de73f2519b8432865c37b8480868079521c1da5ef62507301f73f1ce701a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUI4OjM0NENDRDoxNkJDNjE6MUVBRjA2OjZBNTUxRTAwIiwidmlzaXRvcl9pZCI6IjU2ODM0MjczNTE1MjQwODkzNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca48ad6f24b8ea23d03bb5f8ef34707951f67c23d3cda774f1082214ed4ce3913
hovercard-subject-tagrepository:105205875
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Lz4Code/leetcode_swift4
twitter:imagehttps://opengraph.githubassets.com/4e4b33a5d0e7872b9f02fa32f88d456e39ad9f09f23f5d8df17c4d9642a4a6bb/Lz4Code/leetcode_swift4
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4e4b33a5d0e7872b9f02fa32f88d456e39ad9f09f23f5d8df17c4d9642a4a6bb/Lz4Code/leetcode_swift4
og:image:altLeetCode Solutions in Swift 4. Contribute to Lz4Code/leetcode_swift4 development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5
turbo-cache-controlno-cache
go-importgithub.com/Lz4Code/leetcode_swift4 git https://github.com/Lz4Code/leetcode_swift4.git
octolytics-dimension-user_id32287576
octolytics-dimension-user_loginLz4Code
octolytics-dimension-repository_id105205875
octolytics-dimension-repository_nwoLz4Code/leetcode_swift4
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id30694707
octolytics-dimension-repository_parent_nwodiwu/LeetCode-Solutions-in-Swift
octolytics-dimension-repository_network_root_id30694707
octolytics-dimension-repository_network_root_nwodiwu/LeetCode-Solutions-in-Swift
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b6d37c6470adadff4194742daaab9a817cc4980
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lz4Code/leetcode_swift4#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLz4Code%2Fleetcode_swift4
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLz4Code%2Fleetcode_swift4
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=Lz4Code%2Fleetcode_swift4
Reloadhttps://github.com/Lz4Code/leetcode_swift4
Reloadhttps://github.com/Lz4Code/leetcode_swift4
Reloadhttps://github.com/Lz4Code/leetcode_swift4
Please reload this pagehttps://github.com/Lz4Code/leetcode_swift4
Lz4Code https://github.com/Lz4Code
leetcode_swift4https://github.com/Lz4Code/leetcode_swift4
diwu/LeetCode-Solutions-in-Swifthttps://github.com/diwu/LeetCode-Solutions-in-Swift
Notifications https://github.com/login?return_to=%2FLz4Code%2Fleetcode_swift4
Fork 0 https://github.com/login?return_to=%2FLz4Code%2Fleetcode_swift4
Star 0 https://github.com/login?return_to=%2FLz4Code%2Fleetcode_swift4
Code https://github.com/Lz4Code/leetcode_swift4
Pull requests 0 https://github.com/Lz4Code/leetcode_swift4/pulls
Actions https://github.com/Lz4Code/leetcode_swift4/actions
Projects https://github.com/Lz4Code/leetcode_swift4/projects
Wiki https://github.com/Lz4Code/leetcode_swift4/wiki
Security and quality 0 https://github.com/Lz4Code/leetcode_swift4/security
Insights https://github.com/Lz4Code/leetcode_swift4/pulse
Code https://github.com/Lz4Code/leetcode_swift4
Pull requests https://github.com/Lz4Code/leetcode_swift4/pulls
Actions https://github.com/Lz4Code/leetcode_swift4/actions
Projects https://github.com/Lz4Code/leetcode_swift4/projects
Wiki https://github.com/Lz4Code/leetcode_swift4/wiki
Security and quality https://github.com/Lz4Code/leetcode_swift4/security
Insights https://github.com/Lz4Code/leetcode_swift4/pulse
https://github.com/Lz4Code/leetcode_swift4
Brancheshttps://github.com/Lz4Code/leetcode_swift4/branches
Tagshttps://github.com/Lz4Code/leetcode_swift4/tags
https://github.com/Lz4Code/leetcode_swift4/branches
https://github.com/Lz4Code/leetcode_swift4/tags
465 Commitshttps://github.com/Lz4Code/leetcode_swift4/commits/master/
https://github.com/Lz4Code/leetcode_swift4/commits/master/
Solutionshttps://github.com/Lz4Code/leetcode_swift4/tree/master/Solutions
Solutionshttps://github.com/Lz4Code/leetcode_swift4/tree/master/Solutions
.gitignorehttps://github.com/Lz4Code/leetcode_swift4/blob/master/.gitignore
.gitignorehttps://github.com/Lz4Code/leetcode_swift4/blob/master/.gitignore
LICENSEhttps://github.com/Lz4Code/leetcode_swift4/blob/master/LICENSE
LICENSEhttps://github.com/Lz4Code/leetcode_swift4/blob/master/LICENSE
README.mdhttps://github.com/Lz4Code/leetcode_swift4/blob/master/README.md
README.mdhttps://github.com/Lz4Code/leetcode_swift4/blob/master/README.md
READMEhttps://github.com/Lz4Code/leetcode_swift4
MIT licensehttps://github.com/Lz4Code/leetcode_swift4
https://github.com/diwu/ui-markdown-store/blob/master/swift_sample.png?raw=true
https://github.com/apple/swifthttps://github.com/apple/swift
https://github.com/Lz4Code/leetcode_swift4#leetcode-solutions-in-swift-4
the way Swift strings are storedhttp://oleb.net/blog/2014/07/swift-strings/
https://github.com/Lz4Code/leetcode_swift4#to-run-all-test-cases-launch-the-project-and-hit---u
https://github.com/Lz4Code/leetcode_swift4#requires-xcode-90-beta-6-9m214v-or-later
Two Sumhttps://oj.leetcode.com/problems/two-sum/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_001_Two_Sum.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_001_Two_Sum.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_001_Two_Sum_Test.swift
@naveed.zafarhttps://leetcode.com/discuss/10947/accepted-c-o-n-solution
Add Two Numbershttps://oj.leetcode.com/problems/add-two-numbers/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_002_Add_Two_Numbers.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_002_Add_Two_Numbers.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_002_Add_Two_Numbers_Test.swift
@potpiehttps://leetcode.com/discuss/2308/is-this-algorithm-optimal-or-what
Longest Substring Without Repeating Characters https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_003_Longest_Substring_Without_Repeating_Characters.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_003_Longest_Substring_Without_Repeating_Characters.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_003_Longest_Substring_Without_Repeating_Characters_Test.swift
@heiyanbinhttps://leetcode.com/discuss/6168/my-o-n-solution
Median of Two Sorted Arrayshttps://oj.leetcode.com/problems/median-of-two-sorted-arrays/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_004_Median_Of_Two_Sorted_Arrays.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Hard/ObjC_Hard_004_Median_Of_Two_Sorted_Arrays.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_004_Median_Of_Two_Sorted_Arrays_Test.swift
@MissMaryhttps://leetcode.com/discuss/15790/share-my-o-log-min-m-n-solution-with-explanation
@MissMaryhttps://leetcode.com/discuss/15790/share-my-o-log-min-m-n-solution-with-explanation
full explanationhttps://leetcode.com/discuss/15790/share-my-o-log-min-m-n-solution-with-explanation
Longest Palindromic Substringhttps://leetcode.com/problems/longest-palindromic-substring/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_005_Longest_Palindromic_Substring.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_005_Longest_Palindromic_Substring.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_005_Longest_Palindromic_Substring_Test.swift
@hh1985https://leetcode.com/discuss/32204/simple-c-solution-8ms-13-lines
ZigZag Conversionhttps://oj.leetcode.com/problems/zigzag-conversion/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_006_ZigZag_Conversion.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_006_ZigZag_Conversion_Test.swift
@dylan_yuhttps://leetcode.com/discuss/10493/easy-to-understand-java-solution
Reverse Integer https://oj.leetcode.com/problems/reverse-integer/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_007_Reverse_Integer.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_007_Reverse_Integer_Test.swift
@wshaoxuanhttps://oj.leetcode.com/discuss/120/how-do-we-handle-the-overflow-case
String to Integer (atoi)https://oj.leetcode.com/problems/string-to-integer-atoi/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_008_String_to_Integer_atoi.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_008_String_to_Integer_atoi_Test.swift
@yuruofeifeihttps://leetcode.com/discuss/8886/my-simple-solution
Palindrome Numberhttps://oj.leetcode.com/problems/palindrome-number/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_009_Palindrome_Number.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_009_Palindrome_Number_Test.swift
@hln9319https://leetcode.com/discuss/12693/neat-ac-java-code-o-n-time-complexity
Regular Expression Matchinghttps://oj.leetcode.com/problems/regular-expression-matching/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_010_Regular_Expression_Matching.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_010_Regular_Expression_Matching_Test.swift
@xiaohui7https://leetcode.com/discuss/18970/concise-recursive-and-dp-solutions-with-full-explanation-in
Container With Most Waterhttps://leetcode.com/problems/container-with-most-water/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_011_Container_With_Most_Water.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_011_Container_With_Most_Water_Test.swift
@franticguyhttps://leetcode.com/discuss/14610/very-simple-o-n-solution
Integer To Romanhttps://leetcode.com/problems/integer-to-roman/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_012_Integer_To_Roman.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_012_Integer_To_Roman_Test.swift
@flytoskyhttps://leetcode.com/discuss/1208/how-to-improve-code
Roman To Integerhttps://leetcode.com/problems/roman-to-integer/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_013_Roman_To_Integer.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_013_Roman_To_Integer_Test.swift
@makeittruehttps://leetcode.com/discuss/2369/solution-for-this-question-but-dont-know-there-any-easier-way
Longest Common Prefixhttps://leetcode.com/problems/longest-common-prefix/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_014_Longest_Common_Prefix.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_014_Longest_Common_Prefix_Test.swift
@garysuihttps://leetcode.com/discuss/15755/optimal-solution
3Sumhttps://leetcode.com/problems/3sum/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_015_3Sum.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_015_3Sum_Test.swift
@peerlessbloomhttps://leetcode.com/discuss/10756/my-accepted-o-n-2-solution-without-hashmap
3Sum Closesthttps://leetcode.com/problems/3sum-closest/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_016_3Sum_Closest.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_016_3Sum_Closest_Test.swift
@vaibhavatul47https://leetcode.com/discuss/6438/a-n-2-solution-can-we-do-better
Letter Combinations of A Phone Numberhttps://leetcode.com/problems/letter-combinations-of-a-phone-number/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_017_Letter_Combinations_Of_A_Phone_Number.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_017_Letter_Combinations_Of_A_Phone_Number.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_017_Letter_Combinations_Of_A_Phone_Number_Test.swift
@lirensunhttps://leetcode.com/discuss/24431/my-java-solution-with-fifo-queue
4Sumhttps://leetcode.com/problems/4sum/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_018_4Sum.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_018_4Sum_Test.swift
@zhaohaoshuhttps://leetcode.com/discuss/9141/any-better-solution-than-o-n-3
Remove Nth Node From End of Listhttps://leetcode.com/problems/remove-nth-node-from-end-of-list/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_019_Remove_Nth_Node_From_End_Of_List.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_019_Remove_Nth_Node_From_End_Of_List_Test.swift
@ihttps://leetcode.com/discuss/1656/is-there-a-solution-with-one-pass-and-o-1-space
Valid Parentheseshttps://leetcode.com/problems/valid-parentheses/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_020_Valid_Parentheses.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_020_Valid_Parentheses_Test.swift
@exodiahttps://leetcode.com/discuss/21440/sharing-my-simple-cpp-code-with-2ms
Merge Two Sorted Listshttps://leetcode.com/problems/merge-two-sorted-lists/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_021_Merge_Two_Sorted_Lists.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_021_Merge_Two_Sorted_Lists_Test.swift
@xiaohui7https://leetcode.com/discuss/18986/14-line-clean-c-solution
Generate Parentheseshttps://leetcode.com/problems/generate-parentheses/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_022_Generate_Parentheses.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_022_Generate_Parentheses_Test.swift
@klyc0khttps://leetcode.com/discuss/14436/concise-recursive-c-solution
Merge K Sorted Listshttps://leetcode.com/problems/merge-k-sorted-lists/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_023_Merge_K_Sorted_Lists.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_023_Merge_K_Sorted_Lists_Test.swift
@wksorahttps://leetcode.com/discuss/9279/a-java-solution-based-on-priority-queue
Swap Nodes in Pairshttps://leetcode.com/problems/swap-nodes-in-pairs/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_024_Swap_Nodes_In_Pairs.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_024_Swap_Nodes_In_Pairs_Test.swift
@mike3https://leetcode.com/discuss/3608/seeking-for-a-better-solution
Reverse Nodes in k-Grouphttps://leetcode.com/problems/reverse-nodes-in-k-group/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_025_Reverse_Nodes_In_K_Group.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_025_Reverse_Nodes_In_K_Group_Test.swift
@sean hyuntaekhttps://leetcode.com/discuss/6113/my-solution-accepted-in-java
@shpolskyhttps://leetcode.com/discuss/21301/short-but-recursive-java-code-with-comments
Remove Duplicates from Sorted Arrayhttps://leetcode.com/problems/remove-duplicates-from-sorted-array/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_026_Remove_Duplicates_from_Sorted_Array.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_026_Remove_Duplicates_from_Sorted_Array_Test.swift
@liyangguang1988https://leetcode.com/discuss/10314/my-solution-time-o-n-space-o-1
Remove Elementhttps://leetcode.com/problems/remove-element/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_027_Remove_Element.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_027_Remove_Element_Test.swift
@daxianji007https://leetcode.com/discuss/3753/my-solution-for-your-reference
Implement strStr()https://leetcode.com/problems/implement-strstr/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_028_Implement_StrStr.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_028_Implement_StrStr_Test.swift
@shichaotanhttps://leetcode.com/discuss/19962/a-very-clean-solution-brute-force
@zhenhaihttps://leetcode.com/discuss/11814/accepted-kmp-solution-in-java-for-reference
Divide Two Integershttps://leetcode.com/problems/divide-two-integers/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_029_Divide_Two_Integers.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_029_Divide_Two_Integers_Test.swift
@lucastan & @ngclhttps://leetcode.com/discuss/11358/simple-o-log-n-2-c-solution
Substring with Concatenation of All Wordshttps://leetcode.com/problems/substring-with-concatenation-of-all-words/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_030_Substring_With_Concatenation_Of_All_Words.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_030_Substring_With_Concatenation_Of_All_Words_Test.swift
@ramakanthd92https://leetcode.com/discuss/366/better-solution-than-brute-force
Next Permutationhttps://leetcode.com/problems/next-permutation/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_031_Next_Permutation.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_031_Next_Permutation_Test.swift
@yuyibestmanhttps://leetcode.com/discuss/8472/share-my-o-n-time-solution
Longest Valid Parentheseshttps://leetcode.com/problems/longest-valid-parentheses/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_032_Longest_Valid_Parentheses.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_032_Longest_Valid_Parentheses_Test.swift
@jerryrcwonghttps://leetcode.com/discuss/8092/my-dp-o-n-solution-without-using-stack
Search in Rotated Sorted Arrayhttps://leetcode.com/problems/search-in-rotated-sorted-array/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_033_Search_In_Rotated_Sorted_Array.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_033_Search_In_Rotated_Sorted_Array_Test.swift
@sean hyuntaekhttps://leetcode.com/discuss/5707/algorithm-using-binary-search-accepted-some-suggestions-else
Search for a Rangehttps://leetcode.com/problems/search-for-a-range/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_034_Search_For_A_Range.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_034_Search_For_A_Range_Test.swift
Search Insert Positionhttps://leetcode.com/problems/search-insert-position/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_035_Search_Insert_Position.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_035_Search_Insert_Position_Test.swift
Valid Sudokuhttps://leetcode.com/problems/valid-sudoku/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_036_Valid_Sudoku.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_036_Valid_Sudoku_Test.swift
Sudoku Solverhttps://leetcode.com/problems/sudoku-solver/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_037_Sudoku_Solver.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_037_Sudoku_Solver_Test.swift
Count and Sayhttps://leetcode.com/problems/count-and-say/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_038_Count_And_Say.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_038_Count_And_Say_Test.swift
Combination Sumhttps://leetcode.com/problems/combination-sum/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_039_Combination_Sum.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_039_Combination_Sum_Test.swift
Combination Sum IIhttps://leetcode.com/problems/combination-sum-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_040_Combination_Sum_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_040_Combination_Sum_II_Test.swift
First Missing Positivehttps://leetcode.com/problems/first-missing-positive/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_041_First_Missing_Positive.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_041_First_Missing_Positive_Test.swift
Trapping Rain Waterhttps://leetcode.com/problems/trapping-rain-water/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_042_Trapping_Rain_Water.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_042_Trapping_Rain_Water_Test.swift
Multiply Stringshttps://leetcode.com/problems/multiply-strings/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_043_Multiply_Strings.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_043_Multiply_Strings_Test.swift
Wildcard Matchinghttps://leetcode.com/problems/wildcard-matching/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_044_Wildcard_Matching.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_044_Wildcard_Matching_Test.swift
Jump Game IIhttps://leetcode.com/problems/jump-game-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_045_Jump_Game_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_045_Jump_Game_II_Test.swift
Permutationshttps://leetcode.com/problems/permutations/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_046_Permutations.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_046_Permutations_Test.swift
Permutations IIhttps://leetcode.com/problems/permutations-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_047_Permutations_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_047_Permutations_II_Test.swift
Rotate Imagehttps://leetcode.com/problems/rotate-image/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_048_Rotate_Image.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_048_Rotate_Image_Test.swift
Anagramshttps://leetcode.com/problems/anagrams/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_049_Anagrams.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_049_Anagrams_Test.swift
Pow(x, n)https://leetcode.com/problems/powx-n/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_050_Pow_X_N.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_050_Pow_X_N_Test.swift
N-Queenshttps://leetcode.com/problems/n-queens/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_051_N_Queens.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_051_N_Queens_Test.swift
N-Queens IIhttps://leetcode.com/problems/n-queens-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_052_N_Queens_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_052_N_Queens_II_Test.swift
Maximum Subarrayhttps://leetcode.com/problems/maximum-subarray/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_053_Maximum_Subarray.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_053_Maximum_Subarray_Test.swift
Spiral Matrixhttps://leetcode.com/problems/spiral-matrix/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_054_Spiral_Matrix.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_054_Spiral_Matrix_Test.swift
Jump Gamehttps://leetcode.com/problems/jump-game/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_055_Jump_Game.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_055_Jump_Game_Test.swift
Merge Intervalshttps://leetcode.com/problems/merge-intervals/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_056_Merge_Intervals.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_056_Merge_Intervals_Test.swift
Insert Intervalhttps://leetcode.com/discuss/3971/in-place-solution-ask-for-suggestion
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_057_Insert_Interval.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_057_Insert_Interval_Test.swift
Length of Last Wordhttps://leetcode.com/problems/length-of-last-word/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_058_Length_Of_Last_Word.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_058_Length_Of_Last_Word_Test.swift
Spiral Matrix IIhttps://leetcode.com/problems/spiral-matrix-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_059_Spiral_Matrix_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_059_Spiral_Matrix_II_Test.swift
Permutation Sequencehttps://leetcode.com/problems/permutation-sequence/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_060_Permutation_Sequence.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_060_Permutation_Sequence_Test.swift
Rotate Listhttps://leetcode.com/problems/rotate-list/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_061_Rotate_List.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_061_Rotate_List_Test.swift
Unique Pathshttps://leetcode.com/problems/unique-paths/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_062_Unique_Paths.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_062_Unique_Paths_Test.swift
Unique Paths IIhttps://leetcode.com/problems/unique-paths-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_063_Unique_Paths_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_063_Unique_Paths_II_Test.swift
Minimum Path Sumhttps://leetcode.com/problems/minimum-path-sum/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_064_Minimum_Path_Sum.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_064_Minimum_Path_Sum_Test.swift
Valid Numberhttps://leetcode.com/problems/valid-number/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_065_Valid_Number.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_065_Valid_Number_Test.swift
Plus Onehttps://leetcode.com/problems/plus-one/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_066_Plus_One.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_066_Plus_One_Test.swift
Add Binaryhttps://leetcode.com/problems/add-binary/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_067_Add_Binary.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_067_Add_Binary_Test.swift
Text Justificationhttps://leetcode.com/problems/text-justification/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_068_Text_Justification.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_068_Text_Justification_Test.swift
Sqrt(x)https://leetcode.com/problems/sqrtx/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_069_Sqrt_X.swift
Test Caseshttps://github.com/diwu/LeetCode-Solutions-in-Swift/blob/master/Solutions/SolutionsTests/Medium/Medium_069_Sqrt_X_Test.swift
Climbing Stairshttps://leetcode.com/problems/climbing-stairs/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_070_Climbing_Stairs.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_070_Climbing_Stairs_Test.swift
Simplify Pathhttps://leetcode.com/problems/simplify-path/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_071_Simplify_Path.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_071_Simplify_Path_Test.swift
Edit Distancehttps://leetcode.com/problems/edit-distance/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_072_Edit_Distance.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_072_Edit_Distance_Test.swift
Set Matrix Zeroeshttps://leetcode.com/problems/set-matrix-zeroes/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_073_Set_Matrix_Zeroes.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_073_Set_Matrix_Zeroes_Test.swift
Search a 2D Matrixhttps://leetcode.com/problems/search-a-2d-matrix/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_074_Search_A_2D_Matrix.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_074_Search_A_2D_Matrix_Test.swift
Sort Colorshttps://leetcode.com/problems/sort-colors/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_075_Sort_Colors.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_075_Sort_Colors_Test.swift
Minimum Window Substringhttps://leetcode.com/problems/minimum-window-substring/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_076_Minimum_Window_Substring.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_076_Minimum_Window_Substring_Test.swift
Combinationshttps://leetcode.com/problems/combinations/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_077_Combinations.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_077_Combinations_Test.swift
Subsetshttps://leetcode.com/problems/subsets/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_078_Subsets.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_078_Subsets_Test.swift
Word Searchhttps://leetcode.com/problems/word-search/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_079_Word_Search.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_079_Word_Search_Test.swift
Remove Duplicates from Sorted Array IIhttps://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_080_Remove_Duplicates_From_Sorted_Array_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_080_Remove_Duplicates_From_Sorted_Array_II_Test.swift
Search in Rotated Sorted Array IIhttps://leetcode.com/problems/search-in-rotated-sorted-array-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_081_Search_In_Rotated_Sorted_Array_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_081_Search_In_Rotated_Sorted_Array_II_Test.swift
Remove Duplicates from Sorted List IIhttps://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_082_Remove_Duplicates_From_Sorted_List_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_082_Remove_Duplicates_From_Sorted_List_II_Test.swift
Remove Duplicates from Sorted Listhttps://leetcode.com/problems/remove-duplicates-from-sorted-list/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_083_Remove_Duplicates_From_Sorted_List.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_083_Remove_Duplicates_From_Sorted_List_Test.swift
@Tao2014https://leetcode.com/discuss/7188/concise-solution-and-memory-freeing
Largest Rectangle in Histogramhttps://leetcode.com/problems/largest-rectangle-in-histogram/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_084_Largest_Rectangle_In_Histogram.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_084_Largest_Rectangle_In_Histogram_Test.swift
geeksforgeekshttp://www.geeksforgeeks.org/largest-rectangle-under-histogram/
Maximal Rectanglehttps://leetcode.com/problems/maximal-rectangle/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_085_Maximal_Rectangle.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_085_Maximal_Rectangle_Test.swift
@morrischen2008https://leetcode.com/discuss/20240/share-my-dp-solution
Partition Listhttps://leetcode.com/problems/partition-list/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_086_Partition_List.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_086_Partition_List_Test.swift
@shichaotanhttps://leetcode.com/discuss/21032/very-concise-one-pass-solution
Scramble Stringhttps://leetcode.com/problems/scramble-string/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_087_Scramble_String.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_087_Scramble_String_Test.swift
@Charles_phttps://leetcode.com/discuss/3632/any-better-solution
@dtx0https://leetcode.com/discuss/3632/any-better-solution
Merge Sorted Arrayhttps://leetcode.com/problems/merge-sorted-array/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_088_Merge_Sorted_Array.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_088_Merge_Sorted_Array_Test.swift
@leetchunhuihttps://leetcode.com/discuss/8233/this-is-my-ac-code-may-help-you
Gray Codehttps://leetcode.com/problems/gray-code/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_089_Gray_Code.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_089_Gray_Code_Test.swift
@mike3https://leetcode.com/discuss/2978/what-solution-gray-code-problem-extra-space-used-recursion
Subsets IIhttps://leetcode.com/problems/subsets-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_090_Subsets_II.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_090_Subsets_II_Test.swift
@mathsamhttps://leetcode.com/discuss/14902/c-solution-and-explanation
Decode Wayshttps://leetcode.com/problems/decode-ways/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_091_Decode_Ways.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_091_Decode_Ways_Test.swift
@mankyhttps://leetcode.com/discuss/8527/dp-solution-java-for-reference
Reverse Linked List IIhttps://leetcode.com/problems/reverse-linked-list-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_092_Reverse_Linked_List_II.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_092_Reverse_Linked_List_II.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_092_Reverse_Linked_List_II_Test.swift
@ardyadiptahttps://leetcode.com/discuss/25580/simple-java-solution-with-clear-explanation
Restore IP Addresseshttps://leetcode.com/problems/restore-ip-addresses/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_093_Restore_IP_Addresses.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_093_Restore_IP_Addresses.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_093_Restore_IP_Addresses_Test.swift
@fiona_maohttps://leetcode.com/discuss/12790/my-code-in-java
Binary Tree Inorder Traversalhttps://leetcode.com/problems/binary-tree-inorder-traversal/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_094_Binary_Tree_Inorder_Traversal.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_094_Binary_Tree_Inorder_Traversal.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_094_Binary_Tree_Inorder_Traversal_Test.swift
@lvlolittehttps://leetcode.com/discuss/19765/iterative-solution-in-java-simple-and-readable
@blue_yhttps://leetcode.com/discuss/11295/morris-traversal-no-recursion-no-stack
Unique Binary Search Trees IIhttps://leetcode.com/problems/unique-binary-search-trees-ii/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_095_Unique_Binary_Search_Trees_II.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_095_Unique_Binary_Search_Trees_II.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_095_Unique_Binary_Search_Trees_II_Test.swift
@Jayantahttps://leetcode.com/discuss/10254/a-simple-recursive-solution
Unique Binary Search Treeshttps://leetcode.com/problems/unique-binary-search-trees/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_096_Unique_Binary_Search_Trees.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_096_Unique_Binary_Search_Trees.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_096_Unique_Binary_Search_Trees_Test.swift
@liaisonhttps://leetcode.com/discuss/24282/dp-solution-in-6-lines-with-explanation-f-i-n-g-i-1-g-n-i
Interleaving Stringhttps://leetcode.com/problems/interleaving-string/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_097_Interleaving_String.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Hard/ObjC_Hard_097_Interleaving_String.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_097_Interleaving_String_Test.swift
@sherryxmhehttps://leetcode.com/discuss/11694/my-dp-solution-in-c
Validate Binary Search Treehttps://leetcode.com/problems/validate-binary-search-tree/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Medium/Medium_098_Validate_Binary_Search_Tree.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Medium/ObjC_Medium_098_Validate_Binary_Search_Tree.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Medium/Medium_098_Validate_Binary_Search_Tree_Test.swift
@jakwingshttps://leetcode.com/discuss/14886/order-traversal-please-rely-buggy-int_max-int_min-solutions
Recover Binary Search Treehttps://leetcode.com/problems/recover-binary-search-tree/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Hard/Hard_099_Recover_Binary_Search_Tree.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Hard/ObjC_Hard_099_Recover_Binary_Search_Tree.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Hard/Hard_099_Recover_Binary_Search_Tree_Test.swift
@siyang3https://leetcode.com/discuss/26310/detail-explain-about-morris-traversal-finds-incorrect-pointer
Same Treehttps://leetcode.com/problems/same-tree/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_100_Same_Tree.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Easy/ObjC_Easy_100_Same_Tree.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_100_Same_Tree_Test.swift
@JohnWeiGitHubhttps://leetcode.com/discuss/3470/seeking-for-better-solution
@scotthttps://leetcode.com/discuss/22197/my-non-recursive-method
Symmetric Treehttps://leetcode.com/problems/symmetric-tree/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_101_Symmetric_Tree.swift
ObjC Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions_ObjC/Easy/ObjC_Easy_101_Symmetric_Tree.m
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_101_Symmetric_Tree_Test.swift
@xuanauxhttps://leetcode.com/discuss/456/recusive-solution-symmetric-optimal-solution-inordertraversal
Binary Tree Level Order Traversalhttps://leetcode.com/problems/binary-tree-level-order-traversal/
Swift Solutionhttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/Solutions/Easy/Easy_102_Binary_Tree_Level_Order_Traversal.swift
Test Caseshttps://github.com/Lz4Code/leetcode_swift4/blob/master/Solutions/SolutionsTests/Easy/Easy_102_Binary_Tree_Level_Order_Traversal_Test.swift
@d40ahttps://discuss.leetcode.com/topic/2399/it-is-my-ac-solution
Readme https://github.com/Lz4Code/leetcode_swift4#readme-ov-file
MIT license https://github.com/Lz4Code/leetcode_swift4#MIT-1-ov-file
Please reload this pagehttps://github.com/Lz4Code/leetcode_swift4
Activityhttps://github.com/Lz4Code/leetcode_swift4/activity
Custom propertieshttps://github.com/Lz4Code/leetcode_swift4/custom-properties
0 forkshttps://github.com/Lz4Code/leetcode_swift4/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FLz4Code%2Fleetcode_swift4&report=Lz4Code+%28user%29
Releaseshttps://github.com/Lz4Code/leetcode_swift4/releases
Packages 0https://github.com/orgs/Lz4Code/packages?repo_name=leetcode_swift4
Please reload this pagehttps://github.com/Lz4Code/leetcode_swift4
Contributorshttps://github.com/Lz4Code/leetcode_swift4/graphs/contributors
Please reload this pagehttps://github.com/Lz4Code/leetcode_swift4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.