├── LICENSE ├── Questions.md ├── README.md ├── challenges ├── Palindrome.md └── SumPair.md └── leetcode-bootcamp.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Ryan Bas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Questions.md: -------------------------------------------------------------------------------- 1 | 2 | Walk me through the process that occurs when I type a url into the search bar and hit enter. 3 | You have an excel file you are parsing in node that is 3000 lines and a method that you have to run on every line. The method can not be optimized any further. It runs synchronously. How can you optimize this? 4 | When would you (a) not put CSS between , and (b) JavaScript just before ? 5 | When you type google.com into the browser what happens, go into as much detail as possible 6 | How do you go about optimizing a webpage? 7 | 8 | ### CSS 9 | * What is the css box model 10 | * Explain the stacking context? 11 | 12 | ### System Architecture Questions 13 | * What are the pros and cons to a microservice architecture? 14 | * Explain how you would go about creating a url shortening service like bit.ly. 15 | 16 | ### Debugging 17 | * There is a button on the page, when you click it the page is non-responsive and the pinwheel starts spinning, how do you go about debugging this 18 | 19 | ### Database 20 | * Whats the difference between a relational db like sql and non-relational db like mongo 21 | * Would you ever want to index a database ? (something along those lines ) 22 | 23 | ### Javascript Fundamentals 24 | * What is a closure and how does it relate to side effects 25 | * What is prototypal inheritance vs classical inheritance 26 | * Explain scope in javascript 27 | * What's the difference between a function expression and function declaration 28 | * What is the event loop 29 | * What are promises? 30 | * When would you consider using JavaScript prototypes? 31 | 32 | ### Node Related 33 | * What is REST 34 | * Socket vs http requests 35 | 36 | ### Soft Skills 37 | * How do you keep up with the latest tech 38 | * Do you have any preferred JavaScript libraries or frameworks (don’t list more than three). For one of the libraries/frameworks, please briefly state how you used it to solve a problem. 39 | 40 | ### Testing 41 | * What are unit tests 42 | * Whats the difference between unit tests and continuous integration tests 43 | 44 | 45 | ### Angular 46 | * What is the difference between $rootscope and $scope in Angular? 47 | 48 | 49 | ### Programming Paradigms 50 | * Please describe functional programming in JavaScript and when you might consider using it? 51 | 52 | 53 | ### Computer Science 54 | * Explain what a stack is and what it is used for. 55 | * Merge Sort 56 | * Depth First Traversal of BST 57 | * Given a LinkedList with four nodes, how would you remove the third node? How would you remove the head node? 58 | 59 | ### Javascript Quirks 60 | * What is the output of the following expressions? 61 | 62 | * True == 1 63 | * False === 0 64 | * 1 + ‘1’ 65 | * 1 + 1 + ‘1’ + ‘1’ 66 | * True + 1 67 | * False - 1 68 | 69 | 70 | Using code, please demonstrate an asynchronous call in JavaScript? 71 | 72 | 73 | In ES2015 (aka ES6) we have Modules. What options do you have if you wanted similar functionality in ES5. 74 | 75 | 76 | Please describe the complexity of the following jQuery expression: 77 | $("#insPolicy").hide(); 78 | $("#insForms").show(); 79 | $("#btnForms").addClass("active").attr("data-dirty", true); 80 | $("#btnPolicy").removeClass("active").attr("data-dirty", false); 81 | 82 | 83 | 84 | Write a function that takes in an input array [1, 2, 3, 4, 5] and returns an output array [1, 2, 3, 4, 5, 5, 4, 3, 2, 1]. What is the big O notation of your solution? 85 | 86 | Write a function that takes in an input array [1, 3, 3, 4, 5, 1, 6, 1] and returns an output array [4, 5, 6]. What is the big O notation of your solution? 87 | 88 | Show me how you would turn your resume into a static website using HTML and CSS. 89 | 90 | Given three buttons, how can you increase the click area of the buttons without changing the buttons’ size or the space between the buttons? 91 | 92 | Given the following HTML, how do you select all of the
  • elements using CSS? How do you select all
  • elements except the ones inside of the