# soapyigu/leetcode-swift

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/soapyigu-leetcode-swift).**

4,964 stars · 901 forks · Swift · mit

## Links

- GitHub: https://github.com/soapyigu/LeetCode-Swift
- awesome-repositories: https://awesome-repositories.com/repository/soapyigu-leetcode-swift.md

## Topics

`algorithm` `data-structures` `interview` `leetcode` `swift`

## Description

LeetCode-Swift is a collection of algorithm solutions written in Swift, designed for coding interview preparation. Each solution is implemented as a self-contained function with no external dependencies, making it easy to run and test. The repository organizes solutions by topic and company, and every file includes time and space complexity annotations, allowing quick evaluation of algorithmic efficiency.

What sets this repository apart is its flat file structure and the way solutions are tagged with the companies that asked them in interviews, enabling targeted practice. All code resides in a single directory without additional packages or modules, simplifying navigation and compilation. The solutions cover fundamental data structures and algorithms, from array and string manipulation to linked list operations, dynamic programming, tree algorithms, and more.

The collection spans classic problem categories including array and string algorithms, linked list manipulations, binary tree traversals and reconstructions, dynamic programming optimizations, stack-based expression evaluation, and mathematical computations. It also includes implementations of common data structures such as an LRU cache. The repository is distributed as a Swift package, allowing others to add it as a dependency and explore the solutions.

## Tags

### Part of an Awesome List

- [Swift Implementations](https://awesome-repositories.com/f/awesome-lists/learning/algorithm-solutions/swift-implementations.md) — Provides algorithm solutions implemented natively in Swift for language-specific learning.
- [Data Persistence](https://awesome-repositories.com/f/awesome-lists/data/data-persistence.md) — Collection of interview algorithm solutions.

### Content Management & Publishing

- [Topic-Directory Categorization](https://awesome-repositories.com/f/content-management-publishing/content-management-systems/content-management-platforms/enterprise-specialized-systems/knowledge-management-systems/categorical-directory-indexing/topic-directory-categorization.md) — Organises algorithm solutions into groups by data structure or technique such as arrays, trees, or dynamic programming for focused practice.

### Education & Learning Resources

- [Coding Interview Preparation](https://awesome-repositories.com/f/education-learning-resources/coding-interview-preparation.md) — Provides a curated collection of Swift algorithm solutions for technical interview practice.
- [Data Structures and Algorithms](https://awesome-repositories.com/f/education-learning-resources/curricula-instructional-design/curricula-roadmaps/foundations-study-skills/foundational-computer-science-modules/data-structures-and-algorithms.md) — Ships working Swift implementations of fundamental data structures and algorithms for study.
- [Bracket Validation Algorithms](https://awesome-repositories.com/f/education-learning-resources/bracket-validation-algorithms.md) — Implements stack-based bracket validation for coding interview practice. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/ValidParentheses.swift))
- [Character Sufficiency Checkers](https://awesome-repositories.com/f/education-learning-resources/character-sufficiency-checkers.md) — Ships a routine to check if a target string can be composed from a source string's characters. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/RansomNote.swift))
- [Count-and-Say Sequence Generators](https://awesome-repositories.com/f/education-learning-resources/count-and-say-sequence-generators.md) — Implements the count-and-say sequence generation algorithm. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/CountAndSay.swift))
- [Custom Lexicographic Order Validators](https://awesome-repositories.com/f/education-learning-resources/custom-lexicographic-order-validators.md) — Provides a routine to validate word ordering based on a custom alphabet. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/VerifyingAlienDictionary.swift))
- [Depth Calculations](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/algorithm-data-structure-guides/binary-trees/depth-calculations.md) — Calculates maximum depth of a binary tree using recursion. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/MaximumDepthOfBinaryTree.swift))
- [Diameter Computations](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/algorithm-data-structure-guides/binary-trees/diameter-computations.md) — Implements binary tree diameter computation using recursive traversal. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/DiameterBinaryTree.swift))
- [Inversion Operations](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/algorithm-data-structure-guides/binary-trees/inversion-operations.md) — Implements binary tree inversion by swapping children recursively. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/InvertBinaryTree.swift))
- [Iterative Traversals](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/algorithm-data-structure-guides/binary-trees/iterative-traversals.md) — Ships iterative tree traversal implementations using an explicit stack. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/PreorderTraversal.swift))
- [Level-Order Traversals](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/algorithm-data-structure-guides/binary-trees/level-order-traversals.md) — Implements level-order tree traversal grouping values by depth level. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/BinaryTreeLevelOrderTraversal.swift))
- [Serialization Techniques](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/algorithm-data-structure-guides/binary-trees/serialization-techniques.md) — Provides binary tree serialization and deserialization using preorder traversal. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/SerializeDeserializeBinaryTree.swift))
- [Symmetry Checks](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/algorithm-data-structure-guides/binary-trees/symmetry-checks.md) — Validates binary tree symmetry through recursive subtree comparison. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/SymmetricTree.swift))
- [Tree Serialization](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/algorithm-data-structure-guides/binary-trees/tree-serialization.md) — Converts binary trees to string representation and back for storage or transmission. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/SerializeDeserializeNAryTree.swift))
- [Stack-Based Minimum Finders](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/cs-theory-foundations/algorithms/data-ordering-and-retrieval/minimum-value-finders/stack-based-minimum-finders.md) — Implements a stack with constant-time minimum value retrieval using an auxiliary stack. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/MinStack.swift))
- [Balanced Search Trees](https://awesome-repositories.com/f/education-learning-resources/educational-resources/algorithms-theory-academics/cs-theory-foundations/data-structure-implementations/data-structures/balanced-search-trees.md) — Implements construction of height-balanced binary search trees from sorted arrays. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/ConvertSortedArrayBinarySearchTree.swift))
- [First Unique Character Detectors](https://awesome-repositories.com/f/education-learning-resources/first-unique-character-detectors.md) — Implements logic to find the first character that appears only once in a string. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/FirstUniqueCharacterInString.swift))
- [Flip Game Move Generators](https://awesome-repositories.com/f/education-learning-resources/flip-game-move-generators.md) — Generates all possible move outcomes for the flip game problem. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/FlipGame.swift))
- [In-Place Word Reversal Algorithms](https://awesome-repositories.com/f/education-learning-resources/in-place-word-reversal-algorithms.md) — Ships an in-place algorithm to reverse the order of words in a character string. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/ReverseWordsStringII.swift))
- [Pattern-Word Correspondence Validators](https://awesome-repositories.com/f/education-learning-resources/pattern-word-correspondence-validators.md) — Implements bijection check between a pattern and a list of words. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/WordPattern.swift))
- [String Isomorphism Checkers](https://awesome-repositories.com/f/education-learning-resources/string-isomorphism-checkers.md) — Implements character-to-character mapping check for string isomorphism. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/IsomorphicStrings.swift))
- [String Number Adders](https://awesome-repositories.com/f/education-learning-resources/string-number-adders.md) — Implements digit-by-digit addition of integers represented as strings. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/AddStrings.swift))
- [String Vowel Swappers](https://awesome-repositories.com/f/education-learning-resources/string-vowel-swappers.md) — Ships a two-pointer algorithm to swap vowels in a string. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/ReverseVowelsOfAString.swift))
- [Zigzag Traversals](https://awesome-repositories.com/f/education-learning-resources/technical-domain-education/technical-academic-domains/algorithmic-design-analysis/tree-data-structures/tree-traversal-utilities/zigzag-traversals.md) — Implements zigzag level-order traversal of binary trees, alternating direction per level. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/BinaryTreeZigzagLevelOrderTraversal.swift))
- [Technical Interview Archives](https://awesome-repositories.com/f/education-learning-resources/technical-interview-archives.md) — Organizes categorized algorithm solutions to build pattern recognition for technical interviews.
- [Text Justification Algorithms](https://awesome-repositories.com/f/education-learning-resources/text-justification-algorithms.md) — Implements full text justification to produce lines of specified width. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/TextJustification.swift))
- [Tree Reconstruction](https://awesome-repositories.com/f/education-learning-resources/tree-data-structures/tree-reconstruction.md) — Builds binary trees from inorder and postorder traversal arrays. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/ConstructBinaryTreeInorderPostorder.swift))

### Programming Languages & Runtimes

- [Majority Element Detections](https://awesome-repositories.com/f/programming-languages-runtimes/programming-utilities/data-structure-type-helpers/data-type-utilities/array-element-finding/majority-element-detections.md) — Traverses an array while tracking a candidate count to identify the element that appears more than half the time. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/MajorityElement.swift))
- [Increasing Subsequence Detection](https://awesome-repositories.com/f/programming-languages-runtimes/programming-utilities/data-structure-type-helpers/data-type-utilities/subsequence-algorithms/increasing-subsequence-detection.md) — Finds if an array contains three indices with strictly increasing values using two pointers in linear time. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/IncreasingTripletSubsequence.swift))
- [Kth Order Statistics](https://awesome-repositories.com/f/programming-languages-runtimes/programming-utilities/data-structure-type-helpers/data-structures/hierarchical-tree-structures/binary-search-trees/kth-order-statistics.md) — Finds the Kth smallest value in a BST using in-order traversal. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/KthSmallestElementBST.swift))
- [Recovery Techniques](https://awesome-repositories.com/f/programming-languages-runtimes/programming-utilities/data-structure-type-helpers/data-structures/hierarchical-tree-structures/binary-search-trees/recovery-techniques.md) — Implements recovery of a BST with swapped nodes using Morris traversal. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/RecoverBinarySearchTree.swift))

### Scientific & Mathematical Computing

- [Consecutive Sequence Detections](https://awesome-repositories.com/f/scientific-mathematical-computing/array-manipulations/consecutive-sequence-detections.md) — Finds the longest consecutive sequence of integers in an array using a set for linear time complexity. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/LongestConsecutiveSequence.swift))
- [Complexity Annotations](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/algorithms-and-complexity/complexity-annotations.md) — Each solution includes time and space complexity comments, allowing quick evaluation of algorithmic efficiency.
- [Minimum Word Distance Calculations](https://awesome-repositories.com/f/scientific-mathematical-computing/array-manipulations/minimum-word-distance-calculations.md) — Iterates through an array and updates the minimum distance whenever encountering either word, returning the smallest gap found. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/ShortestWordDistance.swift))
- [Missing Interval Detection](https://awesome-repositories.com/f/scientific-mathematical-computing/missing-interval-detection.md) — Scans a sorted array and identifies numeric intervals missing between a lower and upper bound. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/MissingRanges.swift))
- [Palindromic Sequence Analyzers](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/algorithms-and-complexity/string-algorithms/palindromic-sequence-analyzers.md) — Implements a palindrome validation algorithm that ignores non-alphanumeric characters and case. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/ValidPalindrome.swift))
- [Palindrome Permutation Validators](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/algorithms-and-complexity/string-algorithms/palindromic-sequence-analyzers/palindrome-permutation-validators.md) — Implements frequency-based check for possible palindromic rearrangements. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/PalindromePermutation.swift))
- [Single-Deletion Palindrome Checkers](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/algorithms-and-complexity/string-algorithms/palindromic-sequence-analyzers/single-deletion-palindrome-checkers.md) — Implements a two-pointer algorithm to check if a string is a palindrome after at most one deletion. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/ValidPalindromeII.swift))
- [Lexicographical Sequence Generators](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/arithmetic-number-types/multiplication-algorithms/number-theory-algorithms/lexicographical-sequence-generators.md) — Computes the next lexicographic permutation of an array in linear time and constant extra space. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/NextPermutation.swift))
- [Prefix Calculations](https://awesome-repositories.com/f/scientific-mathematical-computing/prefix-calculations.md) — Implements longest common prefix detection across a set of strings. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/LongestCommonPrefix.swift))
- [Prefix Sum Algorithms](https://awesome-repositories.com/f/scientific-mathematical-computing/prefix-sum-algorithms.md) — Precomputes a prefix sum matrix to answer sum queries for any rectangular subregion in constant time. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/NumMatrix.swift))
- [Subarray Target Sum Locators](https://awesome-repositories.com/f/scientific-mathematical-computing/prefix-sum-algorithms/subarray-target-sum-locators.md) — Uses a hash map to store cumulative sums and their indices to locate the longest contiguous subarray that sums to a given value. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/MaximumSizeSubarraySumEqualsK.swift))
- [Run Length Encoding Implementations](https://awesome-repositories.com/f/scientific-mathematical-computing/run-length-encoding-implementations.md) — Provides run-length encoding compression for strings. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/StringCompression.swift))
- [Sorted Array Pair Sum Algorithms](https://awesome-repositories.com/f/scientific-mathematical-computing/sorted-array-pair-sum-algorithms.md) — Uses two pointers to efficiently find two numbers in a sorted array that sum to a given target and return their positions. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/TwoSumII.swift))
- [Abbreviation Validators](https://awesome-repositories.com/f/scientific-mathematical-computing/string-abbreviation-generators/abbreviation-validators.md) — Implements validation of abbreviated word forms using digit skip counts. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/ValidWordAbbreviation.swift))
- [Minimum Length Subarray Sums](https://awesome-repositories.com/f/scientific-mathematical-computing/subarray-sum-algorithms/minimum-length-subarray-sums.md) — Uses two pointers to find the smallest contiguous subarray whose sum is at least a given target value. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/MinimumSizeSubarraySum.swift))

### Software Engineering & Architecture

- [Array Intersection Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/array-intersection-algorithms.md) — Uses a frequency dictionary to count occurrences in one array, then filters the second array to return elements that appear in both with multiplicity. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/IntersectionTwoArraysII.swift))
- [Array Product Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/array-product-algorithms.md) — Calculates the product of all array elements except the current element using left and right multiplication passes. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/ProductExceptSelf.swift))
- [Closest Triple Sum Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/combination-sum-algorithms/closest-triple-sum-algorithms.md) — Finds the sum of three elements from an array that is closest to a specified target value. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/ThreeSumClosest.swift))
- [In-Place Array Manipulations](https://awesome-repositories.com/f/software-engineering-architecture/in-place-array-manipulations.md) — Shifts array elements by a given offset using three reversals, achieving linear time and constant extra space. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/RotateArray.swift))
- [Linked List Manipulation Utilities](https://awesome-repositories.com/f/software-engineering-architecture/linked-lists/linked-list-manipulation-utilities.md) — Implements the fundamental linked list reversal operation using iterative pointer adjustment. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/ReverseLinkedList.swift))
- [Missing Positive Integer Detections](https://awesome-repositories.com/f/software-engineering-architecture/sorting-algorithms/linear-time-integer-sorts/missing-positive-integer-detections.md) — Finds the smallest positive integer that does not appear in an unsorted array using a set for linear time complexity. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/FirstMissingPositive.swift))
- [Anagram Grouping Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/string-processing-algorithms/substring-counting/anagram-grouping-algorithms.md) — Groups strings into subarrays where each subarray contains words that are anagrams, using sorted strings as dictionary keys. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/String/GroupAnagrams.swift))
- [Target Sum Pair Search](https://awesome-repositories.com/f/software-engineering-architecture/combination-sum-algorithms/target-sum-pair-search.md) — Traverses an array and uses a dictionary to store complements for linear time and space complexity. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/TwoSum.swift))
- [Triplet Sum Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/combination-sum-algorithms/triplet-sum-algorithms.md) — Finds all unique triplets in an array summing to zero by sorting and applying a two-pointer technique. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/ThreeSum.swift))
- [Duplicate Element Detection](https://awesome-repositories.com/f/software-engineering-architecture/duplicate-element-detection.md) — Searches an array for duplicate values within a given index distance using a hash map to track last seen positions. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/ContainsDuplicateII.swift))
- [Postfix Expression Evaluators](https://awesome-repositories.com/f/software-engineering-architecture/expression-transformers/notation-converters/postfix-expression-evaluators.md) — Implements a stack-based evaluator for arithmetic expressions in Reverse Polish Notation. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/EvaluateReversePolishNotation.swift))
- [Duplicate Limiting in Sorted Arrays](https://awesome-repositories.com/f/software-engineering-architecture/in-place-array-manipulations/duplicate-limiting-in-sorted-arrays.md) — Removes duplicates from a sorted array in-place, allowing each element to appear at most twice, using linear time and constant space. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/RemoveDuplicatesFromSortedArrayII.swift))
- [Integer Range Compression Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/integer-range-compression-algorithms.md) — Traverses a sorted integer array and condenses consecutive runs into range strings for compact display. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/SummaryRanges.swift))
- [Linked List Analysis Utilities](https://awesome-repositories.com/f/software-engineering-architecture/linked-lists/linked-list-analysis-utilities.md) — Implements a palindrome check on a linked list by reversing the first half and comparing halves. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/PalindromeLinkedList.swift))
- [Halves Interleaving Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/linked-lists/linked-list-manipulation-utilities/halves-interleaving-algorithms.md) — Implements a specific linked list reordering algorithm that splits, reverses, and interleaves halves. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/ReorderList.swift))
- [Index-Based Reordering Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/linked-lists/linked-list-manipulation-utilities/index-based-reordering-algorithms.md) — Implements a linked list reordering algorithm that groups odd-indexed nodes before even-indexed ones. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/OddEvenLinkedList.swift))
- [Rotation Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/linked-lists/linked-list-manipulation-utilities/rotation-algorithms.md) — Implements a linked list rotation algorithm that shifts nodes by a given offset. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/RotateList.swift))
- [Merge Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/linked-lists/linked-list-sorting-algorithms/merge-algorithms.md) — Implements a merge algorithm for combining two sorted linked lists into one sorted list. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/MergeTwoSortedLists.swift))
- [Node Removal Techniques](https://awesome-repositories.com/f/software-engineering-architecture/linked-lists/node-removal-techniques.md) — Implements a two-pointer technique to delete the Nth node from the end of a linked list. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/RemoveNthFromEnd.swift))
- [LRU Cache Eviction](https://awesome-repositories.com/f/software-engineering-architecture/memory-management/lru-cache-eviction.md) — Implements an LRU cache using a doubly linked list and hash map for constant-time get and put operations. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/LRUCache.swift))
- [Company-Specific Problem Mappings](https://awesome-repositories.com/f/software-engineering-architecture/problem-pattern-mappings/company-specific-problem-mappings.md) — Labels solutions with the companies that asked them in interviews, enabling targeted preparation.
- [Extremum Tracking Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/stacks/extremum-tracking-algorithms.md) — Implements a stack with constant-time maximum element retrieval using an auxiliary stack. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/MaxStack.swift))
- [Repetition-Based String Decoders](https://awesome-repositories.com/f/software-engineering-architecture/string-processing-algorithms/repetitive-string-compression-algorithms/repetition-based-string-decoders.md) — Implements decoding of strings with repetition numbers, a common interview problem. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/DecodeString.swift))
- [Palindromic Substring Counters](https://awesome-repositories.com/f/software-engineering-architecture/string-processing-algorithms/substring-counting/palindromic-substring-counters.md) — Ships a DP algorithm to count all palindromic substrings in a string. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/DP/PalindromicSubstrings.swift))
- [Tree Path Sum Algorithms](https://awesome-repositories.com/f/software-engineering-architecture/tree-path-sum-algorithms.md) — Implements root-to-leaf path sum collection for binary trees, a classic tree algorithm problem. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/PathSumII.swift))
- [Path Enumerations](https://awesome-repositories.com/f/software-engineering-architecture/tree-path-sum-algorithms/path-enumerations.md) — Enumerates all root-to-leaf paths in a binary tree. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/BinaryTreePaths.swift))
- [In-Order Iterators](https://awesome-repositories.com/f/software-engineering-architecture/tree-traversal-algorithms/in-order-iterators.md) — Provides an iterative in-order traversal implementation for binary search trees. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/BinarySearchTreeIterator.swift))
- [Postorder Traversals](https://awesome-repositories.com/f/software-engineering-architecture/tree-traversal-algorithms/postorder-traversals.md) — Implements iterative postorder traversal for binary trees. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/PostorderTraversal.swift))
- [Vertical Tree Traversals](https://awesome-repositories.com/f/software-engineering-architecture/tree-traversal-algorithms/vertical-tree-traversals.md) — Provides vertical order traversal of binary trees, a common interview problem. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Tree/BinaryTreeVerticalOrderTraversal.swift))

### Data & Databases

- [Cache Eviction Policies](https://awesome-repositories.com/f/data-databases/cache-eviction-policies.md) — Implements an LFU cache eviction policy that removes the least frequently requested items. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/LinkedList/LFUCache.swift))
- [Financial Profit Optimizers](https://awesome-repositories.com/f/data-databases/financial-transaction-processing/financial-profit-optimizers.md) — Computes the maximum profit from a single buy-sell pair by tracking the lowest price seen so far in one linear pass. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/DP/BestTimeBuySellStock.swift))
- [Set Intersection Analysis](https://awesome-repositories.com/f/data-databases/relationship-management/set-intersection-analysis.md) — Finds the intersection of two collections by storing elements from one in a set and iterating the other for common elements. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/IntersectionTwoArrays.swift))

### Networking & Communication

- [IP Address Validation](https://awesome-repositories.com/f/networking-communication/ip-address-validation.md) — Provides validation logic for IPv4 and IPv6 address formats. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Array/ValidateIPAddress.swift))

### Web Development

- [Ternary Expression Evaluators](https://awesome-repositories.com/f/web-development/conditional-rendering/ternary-expression-evaluators.md) — Implements a stack-based evaluator for ternary conditional expressions using right-to-left traversal. ([source](https://github.com/soapyigu/LeetCode-Swift/blob/master/Stack/TernaryExpressionParser.swift))
