Skip to content

tkausch/SwiftAlgorithm

Repository files navigation

Swift Algorithms

This repository contains playgrounds with implementaions for common swift problems, code puzzles and other algorithms.

The focus is on clarity and simplicity of code. That said, most of the code should be ready for your project. Or use the code to prepare for you programming interview or computer science studies.

Swift Standard Library Missing Algorithms

Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types. It's pretty new and development is ongoing.

Swift Knowledge Base

This is a swift knowledge base for common ios problems that occure during daily developer work. The knowledge base is grouped into categories and provides playgrounds for the listed problems.

Strings

Enum

Array

Language

Compiler

Date

Documentation

Natural Language

Swift Puzzles

Swift Code puzzles is a collection of interesting problems (also known as challenges) that will help Swift you to learn and practice your skills in logic programming, data structures and algorithms in the Swift programming language.

Strings

Arrays

  • Plus One: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.
  • Sum: Given an array of integers, return indices of the two numbers such that they add up to a specific target.
  • WordLadder: Given two words (beginWord and endWord), and a word list, find the length of shortest transformation sequence from beginWord to endWord.
  • Roman Numbers: Given a integer convert to roman repreentation and vice versa.
  • Missing Ranges: Given a sorted integer array return its missing ranges.
  • Sudoku: Check if given Sudoku is valid and find a solution.
  • MaxSubArraySumProblem: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
  • MaySubArrayProductProblem Smarter Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product.

Cryptography

Concurrency

Foundations

  • Big-O notation If you don't understand what does O(n) mean you should read this first.
  • Recursion Recursion is one of the central ideas of computer science. Many problems have simple recursive solutions.

Data Structures

About

Code puzzles & common swift problems with focus an clarity and simplicity of code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages