Git Product home page Git Product logo

assignment-5's Introduction

Topics: Strings and Arrays

  • Arrays: ordered lists of items often used for sequential lists
  • Strings: sequences of character data.

Required tasks

Strings

  • Read String Questions in Interviews.
    • Strings are immutable. To reverse string, we need a temporary variable.
    • We can use recursion for permutation of a string.
    • The most common interview questions:
      • Generate all permutations of a given String
      • Substrings of a given String
      • Determine if one string is a permutation of another
      • Reversing Strings
      • Replacements and Deletions
      • String Compression Will try to solve by myself after.
  • Watch Memoization and Dynamic Programming video
    • Fibonaci function has big(O) = O(2^n).
    • We can improve by memorization with big(O) = O(n).
  • Watch Anagram Problem Solution video
    • 2 strings are called anagrams: same letters, same counts, different orders.

Arrays

  • Read Sorting Algorithms
    • I'm sorry but no link at 'Read Sorting Algorithms'. The only sort algorithm I remember is bubble sort. After view below video, I suddenly remember linear sort.
  • Watch Introduction to Sorting video
    • Sort is a very useful feature nowaday.
  • Watch Merge Sort video
    • Merge sort using recusion.
    • Merge(array){ Merge(arrayLeft); Merge(arrayRigiht); (Merge(arrayLeft) + Merge(arrayRight)).sortOrder; }

Coding

  • Set up exercism and complete at least 2 exercises using exercism submit.

Optional tasks

Optional

assignment-5's People

Contributors

thiendn160794 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.