From 7870a58b31069c2f25b95b2529dfe5c082e05785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Can=20G=C3=BCney=20Aksakalli?= Date: Mon, 16 Oct 2017 11:20:36 +0200 Subject: [PATCH] Fix typos (#47) --- algorithms/array.md | 2 +- algorithms/matrix.md | 2 +- front-end/interview-questions.md | 2 +- non-technical/behavioral.md | 6 +++--- non-technical/self-introduction.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/algorithms/array.md b/algorithms/array.md index 016e3fbc..4027cfaa 100644 --- a/algorithms/array.md +++ b/algorithms/array.md @@ -1,7 +1,7 @@ Arrays == -- In an arrays of arrays, e.g. given `[[], [1, 2, 3], [4, 5], [], [], [6, 7], [8], [9, 10], [], []]`, print: `1, 2, 3, 4, 5, 6, 7, 8, 9, 10`. +- In an array of arrays, e.g. given `[[], [1, 2, 3], [4, 5], [], [], [6, 7], [8], [9, 10], [], []]`, print: `1, 2, 3, 4, 5, 6, 7, 8, 9, 10`. - Implement an iterator that supports `hasNext()`, `next()` and `remove()` methods. - Given a list of item prices, find all possible combinations of items that sum a particular value `K`. - Paginate an array with constraints, such as skipping certain items. diff --git a/algorithms/matrix.md b/algorithms/matrix.md index 6093c692..a0977e9e 100644 --- a/algorithms/matrix.md +++ b/algorithms/matrix.md @@ -3,7 +3,7 @@ Matrix - You're given a 3 x 3 board of a tile puzzle, with 8 tiles numbered 1 to 8, and an empty spot. You can move any tile adjacent to the empty spot, to the empty spot, creating an empty spot where the tile originally was. The goal is to find a series of moves that will solve the board, i.e. get `[[1, 2, 3], [4, 5, 6], [7, 8, - ]]` where - is the empty tile. - Boggle implementation. Given a dictionary, and a matrix of letters, find all the words in the matrix that are in the dictionary. You can go across, down or diagonally. -- The values of the matrix will represent numbers of carrots available to the rabbit in each square of the garden. If the garden does not have an exact center, the rabbit should start in the square closest to the center with the highest carrot count. On a given turn, the rabbit will eat the carrots available on the square that it is on, and then move up, down, left, or right, choosing the the square that has the most carrots. If there are no carrots left on any of the adjacent squares, the rabbit will go to sleep. You may assume that the rabbit will never have to choose between two squares with the same number of carrots. Write a function which takes a garden matrix and returns the number of carrots the rabbit eats. You may assume the matrix is rectangular with at least 1 row and 1 column, and that it is populated with non-negative integers. For example, +- The values of the matrix will represent numbers of carrots available to the rabbit in each square of the garden. If the garden does not have an exact center, the rabbit should start in the square closest to the center with the highest carrot count. On a given turn, the rabbit will eat the carrots available on the square that it is on, and then move up, down, left, or right, choosing the square that has the most carrots. If there are no carrots left on any of the adjacent squares, the rabbit will go to sleep. You may assume that the rabbit will never have to choose between two squares with the same number of carrots. Write a function which takes a garden matrix and returns the number of carrots the rabbit eats. You may assume the matrix is rectangular with at least 1 row and 1 column, and that it is populated with non-negative integers. For example, - Example: `[[5, 7, 8, 6, 3], [0, 0, 7, 0, 4], [4, 6, 3, 4, 9], [3, 1, 0, 5, 8]]` should return `27`. - Print a matrix in a spiral fashion. - In the Game of life, calculate how to compute the next state of the board. Follow up was to do it if there were memory constraints (board represented by a 1 TB file). diff --git a/front-end/interview-questions.md b/front-end/interview-questions.md index 70031168..9630684c 100644 --- a/front-end/interview-questions.md +++ b/front-end/interview-questions.md @@ -766,7 +766,7 @@ This question is pretty vague. My best guess at its intention is that it is aski `var person = Person()` invokes the `Person` as a function, and not as a constructor. Invoking as such is a common mistake if it the function is intended to be used as a constructor. Typically, the constructor does not return anything, hence invoking the constructor like a normal function will return `undefined` and that gets assigned to the variable intended as the instance. -`var person = new Person()` creates an instance of the `Person` object using the `new` operator, which inherits from `Person.prototype`. An alterative would be to use `Object.create`, such as: `Object.create(Person.prototype)`. +`var person = new Person()` creates an instance of the `Person` object using the `new` operator, which inherits from `Person.prototype`. An alternative would be to use `Object.create`, such as: `Object.create(Person.prototype)`. ```js function Person(name) { diff --git a/non-technical/behavioral.md b/non-technical/behavioral.md index ce84afe0..f3492f46 100644 --- a/non-technical/behavioral.md +++ b/non-technical/behavioral.md @@ -13,7 +13,7 @@ Learn the [STAR](https://en.wikipedia.org/wiki/Situation,_task,_action,_result) - Why do you want to work for X company? - Why do you want to leave your current/last company? - What are you looking for in your next role? -- Tell me about a time where you had a conflict with a co-worker. +- Tell me about a time when you had a conflict with a co-worker. - Tell me about a time in which you had a conflict and needed to influence somebody else. - What project are you currently working on? - What is the most challenging aspect of your current project? @@ -93,7 +93,7 @@ Source: [Glassdoor](https://hired.com/blog/candidates/10-top-interview-questions - Why are you looking to leave your current company? - What is your biggest strength and area of growth? - Tell me about a time your work responsibilities got a little overwhelming. What did you do? -- Give me an example of a time where you had a difference of opinion with a team member. How did you handle that? +- Give me an example of a time when you had a difference of opinion with a team member. How did you handle that? - Tell me about a challenge you faced recently in your role. How did you tackle it? What was the outcome? - Where do you want to be in five years? - Tell me about a time you needed information from someone who wasn't responsive. What did you do? @@ -154,7 +154,7 @@ Source: [Glassdoor](https://hired.com/blog/candidates/10-top-interview-questions Source: [Glassdoor](https://www.glassdoor.com/Interview/Stripe-Interview-Questions-E671932.htm) -- How do you stay up to date with latest technologies? +- How do you stay up to date with the latest technologies? - Explain a project that you worked on recently that was difficult. - Where do you see yourself in five years? diff --git a/non-technical/self-introduction.md b/non-technical/self-introduction.md index 6f78a8fc..7e5e0fea 100644 --- a/non-technical/self-introduction.md +++ b/non-technical/self-introduction.md @@ -20,7 +20,7 @@ The Elevator Pitch is an indispensable tool for you as you move forward in your - PRACTICE! - Lastly, you must practice your pitch! Having a great, succinct summary of your skills only helps if you can actually deliver it rapidly! You should practice keeping a quick but easy-to-follow pace that won't overwhelm them but won't bore them. It's a precarious balance, but can be ironed out with practice. -Having an Elevator Pitch on hand is a great way to create a network and happen upon new job opportunities. There will often be times where you can't prepare for an interview or meeting, and it is incredibly handy to have a practiced pitch. +Having an Elevator Pitch on hand is a great way to create a network and happen upon new job opportunities. There will often be times when you can't prepare for an interview or meeting, and it is incredibly handy to have a practiced pitch. ###### References