Giter Site home page Giter Site logo

cs_interview_questions's Introduction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Author: Chris Arriola
Title: Algorithms
Description: Solutions to various common interview programming problems. This
    contains questions from the book "Cracking the Coding Interview" (written
    in Java).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


General Advice for Technical Questions:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Resolve ambiguity by asking questions.
2. Design an algorithm.
3. Write pseudo-code first (mention to interviewer that you're writing pseudocode).
4. Write your code, not too slow and not too fast.
5. Test your code and carefully fix any mistakes.

Five Algorithm Approaches:
~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Examplify - write out specific examples of the problem, and see if you can figure
    out a general rule.

2. Pattern Matching - consider what problems the algorithm is similar to, and figure
    if you can modify the solution to develop an algorithm for this problem.

3. Simplify & Generalize - Change a constraint (data type, size, stc.) to simplify
    the problem. Then try to solve it. Once you have an algorithm for the "simplified"
    problem, generalize the problem again.

4. Base Case & Build - Solve the algorithm for a base case then try to solve if for
    elements one and two, assuming that you have the answer for element one. Then,
    try to solve it for elements one, two, and three, assuming that you have the
    answer to elements one and two.

5. Data Structure Brainstorm - Simply run through a list of data structures and
    try to apply each one (brute force ftw!!!).

cs_interview_questions's People

Contributors

arriolac avatar

Watchers

James Cloos avatar dev.with 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.