From 598a0dc39a8d642186051bdc77b583069cfbfad5 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Thu, 29 Sep 2022 14:39:40 +0800 Subject: [PATCH] chore: format files --- contents/coding-interview-rubrics.md | 3 +-- contents/final-questions.md | 2 +- experimental/domain/snake-game/snake-game.md | 10 ++++------ website/src/theme/DocSidebar/Mobile/index.d.ts | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/contents/coding-interview-rubrics.md b/contents/coding-interview-rubrics.md index 78b36604..28a640e1 100644 --- a/contents/coding-interview-rubrics.md +++ b/contents/coding-interview-rubrics.md @@ -105,7 +105,7 @@ Advanced problem solving signals: | --- | --- | | Strong hire | No trouble achieving all basic problem solving signals and did so with enough time to achieve most advanced problem solving signals. | | Leaning hire | Managed to achieve all basic problem solving signals but did not have sufficient time to achieve advanced problem solving signals. | -| Leaning no hire | Showed only some basic problem solving signals, failing to achieve the rest. | +| Leaning no hire | Showed only some basic problem solving signals, failing to achieve the rest. | | Strong no hire | Unable to solve the problem or did it without much explanation of their thought process. Approach was disorganized and incorrect. | @@ -130,7 +130,6 @@ Advanced technical competency signals: | Leaning no hire | Struggled to produce a working solution in code. Multiple syntax errors and bad use of language paradigms. | | Strong no hire | Could not produce a working solution in code. Major syntax errors and very bad use of language paradigms. | - ### 4. Testing Testing signals diff --git a/contents/final-questions.md b/contents/final-questions.md index 29f86dc5..37097350 100644 --- a/contents/final-questions.md +++ b/contents/final-questions.md @@ -100,4 +100,4 @@ These questions are suitable for asking Engineering Managers or senior level man - **How does the company decide on what to work on next?** - What assurance do you have that this company will be successful? - Which companies are your main competitors and what differentiates your company? -- What are your highest priorities right now? For example, new features, new products, solidifying existing code, reducing operations overhead? \ No newline at end of file +- What are your highest priorities right now? For example, new features, new products, solidifying existing code, reducing operations overhead? diff --git a/experimental/domain/snake-game/snake-game.md b/experimental/domain/snake-game/snake-game.md index 3565f415..be6b9166 100644 --- a/experimental/domain/snake-game/snake-game.md +++ b/experimental/domain/snake-game/snake-game.md @@ -4,11 +4,9 @@ Design a snake game that is to be played in web browser. Client: React + Redux -Rendering: -Pixel-based graphics. Depending on the intended resolution, can divide the screen into N \* M pixels. Can dynamically calculate the size of each pixel. +Rendering: Pixel-based graphics. Depending on the intended resolution, can divide the screen into N \* M pixels. Can dynamically calculate the size of each pixel. -Fruit: One pixel. -Snake body: One pixel width made up of connected pixels. +Fruit: One pixel. Snake body: One pixel width made up of connected pixels. Model: @@ -59,7 +57,7 @@ function generateFruit() { // Second approach: brute force for (let i = 0; i < rows; i++) { for (let j = 0; j < cols; j++) { - let point = { x: i, y: j }; + let point = {x: i, y: j}; if (snake.points.find(next_fruit_location) === -1) { fruit = point; } @@ -70,7 +68,7 @@ function generateFruit() { const available_points = []; for (let i = 0; i < rows; i++) { for (let j = 0; j < cols; j++) { - let point = { x: i, y: j }; + let point = {x: i, y: j}; if (snake.points.find(next_fruit_location) === -1) { available_points.push(point); } diff --git a/website/src/theme/DocSidebar/Mobile/index.d.ts b/website/src/theme/DocSidebar/Mobile/index.d.ts index 0ba788e5..f4e51370 100644 --- a/website/src/theme/DocSidebar/Mobile/index.d.ts +++ b/website/src/theme/DocSidebar/Mobile/index.d.ts @@ -1,5 +1,5 @@ import React from 'react'; -import type { Props } from '@theme/DocSidebar/Mobile'; +import type {Props} from '@theme/DocSidebar/Mobile'; declare function DocSidebarMobile(props: Props): JSX.Element; declare const _default: React.MemoExoticComponent; export default _default;