shivprakas / cs_interview_questions Goto Github PK
View Code? Open in Web Editor NEWSolutions to various programming interview questions.
Solutions to various programming interview questions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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!!!).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.