msameerfarooq / Problem-Solving-In-Swift

Programing questions solution in swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem Solving

Programing questions solutions in swift

  • Can be use to find prefixs. Some applications are autocomplete search, spell checker etc
  • One variation is suffix tree. Best for pattern matching ( most optimized )
    • Substring check,
    • All occurences of substring
    • Finding all distinct substring

A technique to solve optimization problem in breaking down in to overlapping sub problems and finding the solution using those problems. Optimization problems can be of enumerations ( climbing stairs ), max min profit ( stock selling ) or yes or no

A problem is DP if

  • it has overlapping sub problems ( sub problems computed more than once )
  • optimal sub structure ( solving any problem by solving slving sub problems optimally)

Some improtant algorithm are - Stair case to heaven

About

Programing questions solution in swift


Languages

Language:Swift 99.9%Language:Python 0.1%