# diwu/LeetCode-Solutions-in-Swift

LeetCode Solutions in Swift 5

Repository: https://github.com/diwu/LeetCode-Solutions-in-Swift
Canonical: https://ross.abutalabs.com/products/leetcode-solutions-in-swift
Language: Swift
License: MIT
License Family: permissive
Last push: 2021-02-16T11:48:02+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4220, "days_push": 2024, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1545, forks 213 (observed 2026-08-28T04:05:01.475507+00:00)

## What it is
A curated collection of LeetCode problem solutions written in Swift 5, with optimal time/space complexity and comprehensive test cases runnable via Xcode. It is designed to help developers prepare for job interviews using Swift-specific language features.

## Use cases
- prepare for a coding interview in Swift
- study optimal LeetCode solutions with complexity analysis
- learn Swift-specific idioms like guard, defer, and functional methods
- run algorithm test cases in Xcode
- find O(1) space solutions to classic algorithm problems

## When to choose
- you are interviewing for an iOS/Swift role and practicing LeetCode
- you want idiomatic Swift solutions with test cases
- you prefer studying curated, complexity-annotated solutions over solving blind

## When to avoid
- you need solutions in a language other than Swift or Objective-C
- you need a complete, up-to-date set of all LeetCode problems
- you want an interactive judge or auto-submission tool

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: testing, developer-tools
- domain: education, tutorials, programming-languages
- platform: -
- tags: leetcode, interview-preparation, swift-5, coding-interview, algorithms, data-structures, xcode, macos, swift

## Member repositories
- diwu/LeetCode-Solutions-in-Swift (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.475507+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:35.587218+00:00, confidence not recorded.
  - readme: https://github.com/diwu/LeetCode-Solutions-in-Swift (fetched 2026-08-28T04:05:01.475507+00:00, sha fbd5127dcf38)
- Data as of 2026-08-30T08:39:29.467469+00:00.
