Skip to content

Latest commit

 

History

History

Strings

  1. Space20 Problem.
    Question
    Solution
    Command:-

    $ go run 1.space20-solution.go
    Method TimeComplexity SpaceComplexity Source
    --- O(N) O(1) Link
  2. String Tokenization using strings.Split Problem.
    Question
    Solution
    Command:-

    $ go run 2.string-tokenization-solution.go
    Method TimeComplexity SpaceComplexity Source
    strings.Split in built O(N) O(1) Link
  3. Custom Sort Strings Problem.
    Question
    Solution
    Command:-

    $ go run 3.custom-sort-strings-solution.go
    Method TimeComplexity SpaceComplexity Source
    sort.Slice in built O(NlogN) O(N) Link
  4. Check one string is subsequence of another string Problem.
    Question
    Solution Recursive
    Solution Iterative
    Command:-

    $ go run 4.check-one-string-is-subsequence-of-another-recursive-solution.go
    $ go run 4.check-one-string-is-subsequence-of-another-iterative-solution.go
    Method TimeComplexity SpaceComplexity Source
    Recursive O(N) O(1) Link
    Iterative O(N) O(1) Link