diff --git a/apps/docs/blume.config.ts b/apps/docs/blume.config.ts index 7f020b6..015e515 100644 --- a/apps/docs/blume.config.ts +++ b/apps/docs/blume.config.ts @@ -2,6 +2,7 @@ import { defineConfig } from "blume"; import type { StandardSchema } from "blume/core/standard-schema.ts"; import { filesystem } from "blume/sources"; import { APPENDIX } from "./appendix"; +import { RECENCY, type Company } from "./companies"; import redirects from "./redirects"; // Blume's defaults (`inter`, `ibm-plex-mono`) are fetched from fonts.gstatic.com @@ -33,13 +34,14 @@ const plexMono = { }; /** - * Custom frontmatter, rendered as the badge row by + * Custom frontmatter, rendered between the description and the body by * components/ProblemBadges.astro. Problem pages: `topics:` is LeetCode's topic - * tags and `issue:` the problem's GitHub issue URL (both written by - * apps/cli/sync.ts), `video:` the NeetCode walkthrough's - * YouTube id (apps/cli/videos.ts). Blume rejects undeclared keys and takes - * any Standard Schema; these are hand-rolled so the docs workspace needs no - * zod. All optional — every other page carries none. + * tags, `issue:` the problem's GitHub issue URL and `companies:` the companies + * that asked it in the last six months (`companies.ts`; the table under the + * badge row) — all three written by apps/cli/sync.ts — and `video:` the + * NeetCode walkthrough's YouTube id (apps/cli/videos.ts). Blume rejects + * undeclared keys and takes any Standard Schema; these are hand-rolled so the + * docs workspace needs no zod. All optional — every other page carries none. */ const optional = ( message: string, @@ -74,6 +76,17 @@ const issueSchema = optional( typeof value === "string" && /^https:\/\/github\.com\/[\w.-]+\/[\w.-]+\/issues\/\d+$/.test(value), ); +const companiesSchema = optional( + `expected a list of { name, period, frequency } with period one of ${RECENCY.join(" | ")}`, + (value): value is Company[] => + Array.isArray(value) && + value.every( + (c) => + typeof c?.name === "string" && + RECENCY.includes(c?.period) && + typeof c?.frequency === "number", + ), +); export default defineConfig({ title: "prdlk", @@ -102,6 +115,7 @@ export default defineConfig({ topics: topicsSchema, video: videoSchema, issue: issueSchema, + companies: companiesSchema, }, }, seo: { diff --git a/apps/docs/companies.ts b/apps/docs/companies.ts new file mode 100644 index 0000000..5c37781 --- /dev/null +++ b/apps/docs/companies.ts @@ -0,0 +1,36 @@ +/** + * The `companies:` frontmatter vocabulary, shared by its writer + * (`apps/cli/sync.ts`, from the local DuckDB company-frequency database), its + * schema (`blume.config.ts`) and its two readers: the company table under a + * problem page's badge row (`components/ProblemBadges.astro`) and the + * Companies section of the Appendix (`pages/appendix.astro`), where each + * company's card — anchored at `companyHref()` — lists the problems it asked. + * Plain data, no Astro imports: sync imports this file under Bun. + */ + +/** The database's recency windows, most recent first; they nest, so a company is filed under the first it appears in. */ +export const RECENCY = ["Thirty Days", "Three Months", "Six Months"] as const; +export type Recency = (typeof RECENCY)[number]; + +/** Read under an "Asked within" heading (the company table) or as a row chip (the Appendix card). */ +export const RECENCY_LABEL: Record = { + "Thirty Days": "30 days", + "Three Months": "3 months", + "Six Months": "6 months", +}; + +export interface Company { + name: string; + /** The most recent window the company asked the problem in. */ + period: Recency; + /** 5–100, relative within the company and window: 100 is its most-asked problem there. */ + frequency: number; +} + +/** The company's card on the Appendix; `company-` keeps it clear of the tag cards' `#` ids. */ +export function companyHref(name: string): string { + return `/appendix#company-${name + .toLowerCase() + .replace(/[^a-z0-9]+/g, "-") + .replace(/^-|-$/g, "")}`; +} diff --git a/apps/docs/components/ProblemBadges.astro b/apps/docs/components/ProblemBadges.astro index 0790f7d..1d9db07 100644 --- a/apps/docs/components/ProblemBadges.astro +++ b/apps/docs/components/ProblemBadges.astro @@ -1,6 +1,7 @@ --- /** - * The MDX `wrapper`: the badge row between a page's description and its body. + * The MDX `wrapper`: the badge row (and, below it, the company table) between + * a page's description and its body. * Blume's page template renders the title and description itself and then * the MDX content, with no slot in between, so wrapping the content is the * only way to land right after the description. MDX hands a wrapper no @@ -26,12 +27,19 @@ * - `issue:` (problem pages, written by sync) is the problem's GitHub issue * URL, a neutral "Issue #N" badge with the GitHub mark, right after * "Explanation" at the end of the row. + * - `companies:` (problem pages, written by sync; `companies.ts`) is the + * companies that asked the problem in the last six months, a table laid + * out like Blume's TypeTable under the badge row: each company a pill + * linking to its card in the Appendix's Companies section, the most recent + * window it asked in, and its frequency there (relative within that + * company and window, so a bar of 100 is its most-asked problem). */ import { getEntry } from "astro:content"; import data from "blume:data"; import Badge from "blume/components/content/Badge.astro"; import { stripBase, withBase } from "blume/components/islands/base-path.ts"; import { APPENDIX } from "../appendix.ts"; +import { RECENCY_LABEL, companyHref, type Company } from "../companies.ts"; import { tagColors } from "../lib/tag-colors.ts"; import { TOPIC_LANDINGS, tagTarget, type TopicTag } from "../topic-landings.ts"; @@ -46,6 +54,7 @@ const entry = at ? await getEntry(at.collection, at.entryId) : undefined; const tags: TopicTag[] = entry?.data.topics ?? []; const video: string | undefined = entry?.data.video; const issue: string | undefined = entry?.data.issue; +const companies: Company[] = entry?.data.companies ?? []; const served = new Set(data.routes.map((r: { path: string }) => r.path)); @@ -96,6 +105,8 @@ const badges = tags.map((tag) => { }); const linkClass = "no-underline transition-opacity hover:opacity-80"; +// TypeTable's column track, so the header and every row align. +const columns = "grid grid-cols-[2fr_1fr_auto] items-center gap-4"; --- { @@ -131,4 +142,34 @@ const linkClass = "no-underline transition-opacity hover:opacity-80"; ) } +{ + companies.length > 0 && ( +
+
+ Company + Asked within + Frequency +
+
+ {companies.map((c) => ( +
+ + + {c.name} + + + {RECENCY_LABEL[c.period]} + + +
+ ))} +
+
+ ) +} + diff --git a/apps/docs/content/(01-linear-structures)/binary-search/153_find-minimum-in-rotated-sorted-array.mdx b/apps/docs/content/(01-linear-structures)/binary-search/153_find-minimum-in-rotated-sorted-array.mdx index 8c96a32..e50b85b 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/153_find-minimum-in-rotated-sorted-array.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/153_find-minimum-in-rotated-sorted-array.mdx @@ -7,6 +7,13 @@ topics: - { name: "Binary Search", slug: "binary-search" } video: "nIVW4P8b1VA" issue: "https://github.com/prdlk/leetcode/issues/62" +companies: + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "tcs", period: "Six Months", frequency: 43.5 } + - { name: "Bloomberg", period: "Six Months", frequency: 40.6 } + - { name: "Meta", period: "Six Months", frequency: 32.7 } sidebar: label: 'Find Minimum in Rotated Sorted Array' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/binary-search/162_find-peak-element.mdx b/apps/docs/content/(01-linear-structures)/binary-search/162_find-peak-element.mdx index 81ddfff..2a3440a 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/162_find-peak-element.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/162_find-peak-element.mdx @@ -6,6 +6,15 @@ topics: - { name: "Array", slug: "array" } - { name: "Binary Search", slug: "binary-search" } issue: "https://github.com/prdlk/leetcode/issues/64" +companies: + - { name: "Infosys", period: "Thirty Days", frequency: 68.6 } + - { name: "tcs", period: "Thirty Days", frequency: 67.6 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Meta", period: "Three Months", frequency: 54.8 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Amazon", period: "Three Months", frequency: 34.6 } + - { name: "Uber", period: "Six Months", frequency: 67.2 } sidebar: label: 'Find Peak Element' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/binary-search/33_search-in-rotated-sorted-array.mdx b/apps/docs/content/(01-linear-structures)/binary-search/33_search-in-rotated-sorted-array.mdx index aeaf3b5..0a766aa 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/33_search-in-rotated-sorted-array.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/33_search-in-rotated-sorted-array.mdx @@ -7,6 +7,18 @@ topics: - { name: "Binary Search", slug: "binary-search" } video: "U8XENwh8Oy8" issue: "https://github.com/prdlk/leetcode/issues/60" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "Oracle", period: "Three Months", frequency: 100 } + - { name: "Bloomberg", period: "Three Months", frequency: 68.3 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "TikTok", period: "Six Months", frequency: 64.9 } + - { name: "LinkedIn", period: "Six Months", frequency: 63.3 } + - { name: "Yandex", period: "Six Months", frequency: 59.6 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 53.1 } + - { name: "Apple", period: "Six Months", frequency: 48.1 } sidebar: label: 'Search in Rotated Sorted Array' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/binary-search/34_find-first-and-last-position-of-element-in-sorted-array.mdx b/apps/docs/content/(01-linear-structures)/binary-search/34_find-first-and-last-position-of-element-in-sorted-array.mdx index 4f40541..e2b0617 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/34_find-first-and-last-position-of-element-in-sorted-array.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/34_find-first-and-last-position-of-element-in-sorted-array.mdx @@ -6,6 +6,17 @@ topics: - { name: "Array", slug: "array" } - { name: "Binary Search", slug: "binary-search" } issue: "https://github.com/prdlk/leetcode/issues/65" +companies: + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "TikTok", period: "Three Months", frequency: 70.9 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Instacart", period: "Six Months", frequency: 100 } + - { name: "Apple", period: "Six Months", frequency: 70.2 } + - { name: "Infosys", period: "Six Months", frequency: 56.2 } sidebar: label: 'Find First and Last Position of Element in Sorted Array' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/binary-search/35_search-insert-position.mdx b/apps/docs/content/(01-linear-structures)/binary-search/35_search-insert-position.mdx index c08b610..7911052 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/35_search-insert-position.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/35_search-insert-position.mdx @@ -7,6 +7,15 @@ topics: - { name: "Binary Search", slug: "binary-search" } video: "K-RYzDZkzCI" issue: "https://github.com/prdlk/leetcode/issues/63" +companies: + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Grammarly", period: "Three Months", frequency: 84.8 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Meta", period: "Three Months", frequency: 49.8 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Infosys", period: "Six Months", frequency: 56.2 } sidebar: label: 'Search Insert Position' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/binary-search/4_median-of-two-sorted-arrays.mdx b/apps/docs/content/(01-linear-structures)/binary-search/4_median-of-two-sorted-arrays.mdx index ef1dc5b..c5da9ce 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/4_median-of-two-sorted-arrays.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/4_median-of-two-sorted-arrays.mdx @@ -7,6 +7,19 @@ topics: - { name: "Binary Search", slug: "binary-search" } - { name: "Divide and Conquer", slug: "divide-and-conquer" } issue: "https://github.com/prdlk/leetcode/issues/66" +companies: + - { name: "Rippling", period: "Thirty Days", frequency: 93 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 69.6 } + - { name: "Meta", period: "Thirty Days", frequency: 63.8 } + - { name: "Google", period: "Thirty Days", frequency: 62 } + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "eBay", period: "Three Months", frequency: 82.2 } + - { name: "Goldman Sachs", period: "Three Months", frequency: 57 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Zoho", period: "Six Months", frequency: 79.6 } + - { name: "DE Shaw", period: "Six Months", frequency: 74.2 } + - { name: "Apple", period: "Six Months", frequency: 48.1 } sidebar: label: 'Median of Two Sorted Arrays' badge: 'Hard' diff --git a/apps/docs/content/(01-linear-structures)/binary-search/704_binary-search.mdx b/apps/docs/content/(01-linear-structures)/binary-search/704_binary-search.mdx index 0015dc8..9f2b6cd 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/704_binary-search.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/704_binary-search.mdx @@ -7,6 +7,12 @@ topics: - { name: "Binary Search", slug: "binary-search" } video: "s4DPM8ct1pI" issue: "https://github.com/prdlk/leetcode/issues/58" +companies: + - { name: "Google", period: "Thirty Days", frequency: 53.2 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Meta", period: "Three Months", frequency: 49.8 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Amazon", period: "Three Months", frequency: 39.1 } sidebar: label: 'Binary Search' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/binary-search/74_search-a-2d-matrix.mdx b/apps/docs/content/(01-linear-structures)/binary-search/74_search-a-2d-matrix.mdx index 1e285a9..f19972e 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/74_search-a-2d-matrix.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/74_search-a-2d-matrix.mdx @@ -8,6 +8,15 @@ topics: - { name: "Matrix", slug: "matrix" } video: "Ber2pi2C0j0" issue: "https://github.com/prdlk/leetcode/issues/61" +companies: + - { name: "Goldman Sachs", period: "Thirty Days", frequency: 62.9 } + - { name: "Microsoft", period: "Three Months", frequency: 57.2 } + - { name: "Amazon", period: "Three Months", frequency: 34.6 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "SAP", period: "Six Months", frequency: 100 } + - { name: "tcs", period: "Six Months", frequency: 43.5 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'Search a 2D Matrix' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/binary-search/875_koko-eating-bananas.mdx b/apps/docs/content/(01-linear-structures)/binary-search/875_koko-eating-bananas.mdx index 55f7c8f..55a98bc 100644 --- a/apps/docs/content/(01-linear-structures)/binary-search/875_koko-eating-bananas.mdx +++ b/apps/docs/content/(01-linear-structures)/binary-search/875_koko-eating-bananas.mdx @@ -7,6 +7,18 @@ topics: - { name: "Binary Search", slug: "binary-search" } video: "U2SozAs9RzA" issue: "https://github.com/prdlk/leetcode/issues/59" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 69.6 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Nvidia", period: "Three Months", frequency: 100 } + - { name: "Infosys", period: "Three Months", frequency: 87.4 } + - { name: "Meta", period: "Three Months", frequency: 62.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Coupang", period: "Six Months", frequency: 100 } + - { name: "Swiggy", period: "Six Months", frequency: 100 } + - { name: "Accenture", period: "Six Months", frequency: 75 } + - { name: "Microsoft", period: "Six Months", frequency: 56.9 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 44.8 } sidebar: label: 'Koko Eating Bananas' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/128_longest-consecutive-sequence.mdx b/apps/docs/content/(01-linear-structures)/hash-table/128_longest-consecutive-sequence.mdx index 7d12ea7..30e38e8 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/128_longest-consecutive-sequence.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/128_longest-consecutive-sequence.mdx @@ -7,6 +7,18 @@ topics: - { name: "Hash Table", slug: "hash-table" } - { name: "Union-Find", slug: "union-find" } issue: "https://github.com/prdlk/leetcode/issues/34" +companies: + - { name: "tcs", period: "Thirty Days", frequency: 74.3 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 65.8 } + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "Google", period: "Thirty Days", frequency: 53.2 } + - { name: "Apple", period: "Three Months", frequency: 69 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Paytm", period: "Six Months", frequency: 100 } + - { name: "Nvidia", period: "Six Months", frequency: 91.1 } + - { name: "TikTok", period: "Six Months", frequency: 55.2 } + - { name: "Salesforce", period: "Six Months", frequency: 50.2 } sidebar: label: 'Longest Consecutive Sequence' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/1832_check-if-the-sentence-is-pangram.mdx b/apps/docs/content/(01-linear-structures)/hash-table/1832_check-if-the-sentence-is-pangram.mdx index 569eee4..e5c3af1 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/1832_check-if-the-sentence-is-pangram.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/1832_check-if-the-sentence-is-pangram.mdx @@ -5,6 +5,10 @@ icon: dot topics: - { name: "Hash Table", slug: "hash-table" } - { name: "String", slug: "string" } +companies: + - { name: "Bloomberg", period: "Six Months", frequency: 34.2 } + - { name: "Amazon", period: "Six Months", frequency: 14.3 } + - { name: "Google", period: "Six Months", frequency: 11.8 } sidebar: label: 'Check if the Sentence Is Pangram' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/1_two-sum.mdx b/apps/docs/content/(01-linear-structures)/hash-table/1_two-sum.mdx index fb9b7f7..9051be2 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/1_two-sum.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/1_two-sum.mdx @@ -7,6 +7,35 @@ topics: - { name: "Hash Table", slug: "hash-table" } video: "KLlXCFG5TnA" issue: "https://github.com/prdlk/leetcode/issues/29" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 100 } + - { name: "Google", period: "Thirty Days", frequency: 100 } + - { name: "Meta", period: "Thirty Days", frequency: 100 } + - { name: "Microsoft", period: "Thirty Days", frequency: 100 } + - { name: "tcs", period: "Thirty Days", frequency: 79.6 } + - { name: "Ola Cabs", period: "Thirty Days", frequency: 76.7 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Infosys", period: "Thirty Days", frequency: 68.6 } + - { name: "Altimetrik", period: "Three Months", frequency: 100 } + - { name: "Capgemini", period: "Three Months", frequency: 100 } + - { name: "Microstrategy", period: "Three Months", frequency: 100 } + - { name: "MongoDB", period: "Three Months", frequency: 100 } + - { name: "Cognizant", period: "Three Months", frequency: 88.7 } + - { name: "Apple", period: "Three Months", frequency: 80.4 } + - { name: "Barclays", period: "Six Months", frequency: 100 } + - { name: "Cisco", period: "Six Months", frequency: 100 } + - { name: "Deloitte", period: "Six Months", frequency: 100 } + - { name: "Expedia", period: "Six Months", frequency: 100 } + - { name: "NetApp", period: "Six Months", frequency: 100 } + - { name: "Samsung", period: "Six Months", frequency: 100 } + - { name: "Sony", period: "Six Months", frequency: 100 } + - { name: "Oracle", period: "Six Months", frequency: 91.2 } + - { name: "Qualcomm", period: "Six Months", frequency: 80.7 } + - { name: "IBM", period: "Six Months", frequency: 77.2 } + - { name: "eBay", period: "Six Months", frequency: 75.2 } + - { name: "Walmart Labs", period: "Six Months", frequency: 70.5 } + - { name: "Flipkart", period: "Six Months", frequency: 57.1 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 44.8 } sidebar: label: 'Two Sum' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/205_isomorphic-strings.mdx b/apps/docs/content/(01-linear-structures)/hash-table/205_isomorphic-strings.mdx index 7879b52..ee92d2a 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/205_isomorphic-strings.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/205_isomorphic-strings.mdx @@ -6,6 +6,13 @@ topics: - { name: "Hash Table", slug: "hash-table" } - { name: "String", slug: "string" } issue: "https://github.com/prdlk/leetcode/issues/33" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Meta", period: "Six Months", frequency: 24.5 } sidebar: label: 'Isomorphic Strings' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/217_contains-duplicate.mdx b/apps/docs/content/(01-linear-structures)/hash-table/217_contains-duplicate.mdx index f8b5398..1d33321 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/217_contains-duplicate.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/217_contains-duplicate.mdx @@ -8,6 +8,12 @@ topics: - { name: "Sorting", slug: "sorting" } video: "3OamzN90kPg" issue: "https://github.com/prdlk/leetcode/issues/27" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } sidebar: label: 'Contains Duplicate' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/242_valid-anagram.mdx b/apps/docs/content/(01-linear-structures)/hash-table/242_valid-anagram.mdx index 2dfcf22..347e8e9 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/242_valid-anagram.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/242_valid-anagram.mdx @@ -8,6 +8,16 @@ topics: - { name: "Sorting", slug: "sorting" } video: "9UtInBqnCgA" issue: "https://github.com/prdlk/leetcode/issues/28" +companies: + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "tcs", period: "Thirty Days", frequency: 58.2 } + - { name: "Google", period: "Thirty Days", frequency: 53.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "IBM", period: "Three Months", frequency: 100 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "Bloomberg", period: "Three Months", frequency: 64.4 } + - { name: "Meta", period: "Three Months", frequency: 58.9 } + - { name: "Deloitte", period: "Six Months", frequency: 81 } sidebar: label: 'Valid Anagram' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/290_word-pattern.mdx b/apps/docs/content/(01-linear-structures)/hash-table/290_word-pattern.mdx index d5131a4..f58640d 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/290_word-pattern.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/290_word-pattern.mdx @@ -6,6 +6,10 @@ topics: - { name: "Hash Table", slug: "hash-table" } - { name: "String", slug: "string" } issue: "https://github.com/prdlk/leetcode/issues/35" +companies: + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } + - { name: "Amazon", period: "Six Months", frequency: 20.9 } sidebar: label: 'Word Pattern' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/347_top-k-frequent-elements.mdx b/apps/docs/content/(01-linear-structures)/hash-table/347_top-k-frequent-elements.mdx index 5e344ba..b00d098 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/347_top-k-frequent-elements.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/347_top-k-frequent-elements.mdx @@ -13,6 +13,23 @@ topics: - { name: "Quickselect", slug: "quickselect" } video: "YPTqKIgVk-k" issue: "https://github.com/prdlk/leetcode/issues/31" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 72.9 } + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Google", period: "Thirty Days", frequency: 42.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Snap", period: "Six Months", frequency: 100 } + - { name: "SoFi", period: "Six Months", frequency: 100 } + - { name: "PayPal", period: "Six Months", frequency: 88.4 } + - { name: "Walmart Labs", period: "Six Months", frequency: 81.4 } + - { name: "Nvidia", period: "Six Months", frequency: 78.7 } + - { name: "eBay", period: "Six Months", frequency: 75.2 } + - { name: "Visa", period: "Six Months", frequency: 69.7 } + - { name: "Snowflake", period: "Six Months", frequency: 58.7 } + - { name: "TikTok", period: "Six Months", frequency: 55.2 } + - { name: "Meta", period: "Six Months", frequency: 50.6 } + - { name: "Apple", period: "Six Months", frequency: 48.1 } + - { name: "tcs", period: "Six Months", frequency: 43.5 } sidebar: label: 'Top K Frequent Elements' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/387_first-unique-character-in-a-string.mdx b/apps/docs/content/(01-linear-structures)/hash-table/387_first-unique-character-in-a-string.mdx index 4fc7f6d..7fb9fb7 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/387_first-unique-character-in-a-string.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/387_first-unique-character-in-a-string.mdx @@ -8,6 +8,16 @@ topics: - { name: "Queue", slug: "queue" } - { name: "Counting", slug: "counting" } video: "rBENYgWy3xU" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Yandex", period: "Three Months", frequency: 76.1 } + - { name: "tcs", period: "Three Months", frequency: 73.7 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "EPAM Systems", period: "Six Months", frequency: 76.2 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 59 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } sidebar: label: 'First Unique Character in a String' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/451_sort-characters-by-frequency.mdx b/apps/docs/content/(01-linear-structures)/hash-table/451_sort-characters-by-frequency.mdx index b741a32..d2b3638 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/451_sort-characters-by-frequency.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/451_sort-characters-by-frequency.mdx @@ -10,6 +10,12 @@ topics: - { name: "Bucket Sort", slug: "bucket-sort" } - { name: "Counting", slug: "counting" } video: "OXdXc9HTrIg" +companies: + - { name: "Meta", period: "Three Months", frequency: 49.8 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Amazon", period: "Six Months", frequency: 20.9 } sidebar: label: 'Sort Characters By Frequency' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/hash-table/49_group-anagrams.mdx b/apps/docs/content/(01-linear-structures)/hash-table/49_group-anagrams.mdx index fe121e2..f329d59 100644 --- a/apps/docs/content/(01-linear-structures)/hash-table/49_group-anagrams.mdx +++ b/apps/docs/content/(01-linear-structures)/hash-table/49_group-anagrams.mdx @@ -9,6 +9,31 @@ topics: - { name: "Sorting", slug: "sorting" } video: "vzdNOK2oB2E" issue: "https://github.com/prdlk/leetcode/issues/30" +companies: + - { name: "Apple", period: "Thirty Days", frequency: 100 } + - { name: "Amazon", period: "Thirty Days", frequency: 78.4 } + - { name: "Ola Cabs", period: "Thirty Days", frequency: 76.7 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "tcs", period: "Thirty Days", frequency: 58.2 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "CrowdStrike", period: "Three Months", frequency: 100 } + - { name: "Deloitte", period: "Three Months", frequency: 100 } + - { name: "HashedIn", period: "Three Months", frequency: 100 } + - { name: "Smartsheet", period: "Three Months", frequency: 100 } + - { name: "Walmart Labs", period: "Three Months", frequency: 100 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Expedia", period: "Six Months", frequency: 100 } + - { name: "Wipro", period: "Six Months", frequency: 100 } + - { name: "Adobe", period: "Six Months", frequency: 93.7 } + - { name: "Zoho", period: "Six Months", frequency: 79.6 } + - { name: "Nvidia", period: "Six Months", frequency: 78.7 } + - { name: "Oracle", period: "Six Months", frequency: 78.7 } + - { name: "EPAM Systems", period: "Six Months", frequency: 76.2 } + - { name: "Palo Alto Networks", period: "Six Months", frequency: 75.9 } + - { name: "Visa", period: "Six Months", frequency: 69.7 } + - { name: "Infosys", period: "Six Months", frequency: 67.9 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 53.1 } sidebar: label: 'Group Anagrams' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/monotonic-stack/496_next-greater-element-i.mdx b/apps/docs/content/(01-linear-structures)/monotonic-stack/496_next-greater-element-i.mdx index 1f30bbc..3bd2aa8 100644 --- a/apps/docs/content/(01-linear-structures)/monotonic-stack/496_next-greater-element-i.mdx +++ b/apps/docs/content/(01-linear-structures)/monotonic-stack/496_next-greater-element-i.mdx @@ -8,6 +8,13 @@ topics: - { name: "Stack", slug: "stack" } - { name: "Monotonic Stack", slug: "monotonic-stack" } issue: "https://github.com/prdlk/leetcode/issues/74" +companies: + - { name: "Google", period: "Thirty Days", frequency: 46.6 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Bloomberg", period: "Three Months", frequency: 59.7 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "tcs", period: "Six Months", frequency: 43.5 } sidebar: label: 'Next Greater Element I' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/monotonic-stack/739_daily-temperatures.mdx b/apps/docs/content/(01-linear-structures)/monotonic-stack/739_daily-temperatures.mdx index 7dd5670..067c6c3 100644 --- a/apps/docs/content/(01-linear-structures)/monotonic-stack/739_daily-temperatures.mdx +++ b/apps/docs/content/(01-linear-structures)/monotonic-stack/739_daily-temperatures.mdx @@ -8,6 +8,16 @@ topics: - { name: "Monotonic Stack", slug: "monotonic-stack" } video: "cTBiBSnjO3c" issue: "https://github.com/prdlk/leetcode/issues/72" +companies: + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Chime", period: "Three Months", frequency: 100 } + - { name: "Bloomberg", period: "Three Months", frequency: 59.7 } + - { name: "Amazon", period: "Three Months", frequency: 42.8 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Anduril", period: "Six Months", frequency: 92.8 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 44.8 } + - { name: "tcs", period: "Six Months", frequency: 43.5 } + - { name: "Microsoft", period: "Six Months", frequency: 42.5 } sidebar: label: 'Daily Temperatures' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/monotonic-stack/84_largest-rectangle-in-histogram.mdx b/apps/docs/content/(01-linear-structures)/monotonic-stack/84_largest-rectangle-in-histogram.mdx index 012cf9d..298b6a4 100644 --- a/apps/docs/content/(01-linear-structures)/monotonic-stack/84_largest-rectangle-in-histogram.mdx +++ b/apps/docs/content/(01-linear-structures)/monotonic-stack/84_largest-rectangle-in-histogram.mdx @@ -8,6 +8,14 @@ topics: - { name: "Monotonic Stack", slug: "monotonic-stack" } - { name: "Range Minimum/Maximum Query", slug: "range-minimum-maximum-query" } issue: "https://github.com/prdlk/leetcode/issues/76" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Accenture", period: "Three Months", frequency: 88.6 } + - { name: "tcs", period: "Three Months", frequency: 73.7 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } sidebar: label: 'Largest Rectangle in Histogram' badge: 'Hard' diff --git a/apps/docs/content/(01-linear-structures)/monotonic-stack/853_car-fleet.mdx b/apps/docs/content/(01-linear-structures)/monotonic-stack/853_car-fleet.mdx index 596b9a5..f85c38e 100644 --- a/apps/docs/content/(01-linear-structures)/monotonic-stack/853_car-fleet.mdx +++ b/apps/docs/content/(01-linear-structures)/monotonic-stack/853_car-fleet.mdx @@ -9,6 +9,9 @@ topics: - { name: "Monotonic Stack", slug: "monotonic-stack" } video: "Pr6T-3yB9RM" issue: "https://github.com/prdlk/leetcode/issues/73" +companies: + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Amazon", period: "Six Months", frequency: 26 } sidebar: label: 'Car Fleet' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/monotonic-stack/901_online-stock-span.mdx b/apps/docs/content/(01-linear-structures)/monotonic-stack/901_online-stock-span.mdx index 7286338..c95cb1f 100644 --- a/apps/docs/content/(01-linear-structures)/monotonic-stack/901_online-stock-span.mdx +++ b/apps/docs/content/(01-linear-structures)/monotonic-stack/901_online-stock-span.mdx @@ -8,6 +8,11 @@ topics: - { name: "Monotonic Stack", slug: "monotonic-stack" } - { name: "Data Stream", slug: "data-stream" } issue: "https://github.com/prdlk/leetcode/issues/75" +companies: + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Amazon", period: "Six Months", frequency: 26 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'Online Stock Span' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/prefix-sum/238_product-of-array-except-self.mdx b/apps/docs/content/(01-linear-structures)/prefix-sum/238_product-of-array-except-self.mdx index af5e828..ce699dd 100644 --- a/apps/docs/content/(01-linear-structures)/prefix-sum/238_product-of-array-except-self.mdx +++ b/apps/docs/content/(01-linear-structures)/prefix-sum/238_product-of-array-except-self.mdx @@ -7,6 +7,14 @@ topics: - { name: "Prefix Sum", slug: "prefix-sum" } video: "bNvIQI2wAjk" issue: "https://github.com/prdlk/leetcode/issues/37" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 70.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 61.3 } + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "Google", period: "Thirty Days", frequency: 42.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 59.7 } + - { name: "Asana", period: "Six Months", frequency: 100 } + - { name: "tcs", period: "Six Months", frequency: 43.5 } sidebar: label: 'Product of Array Except Self' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/prefix-sum/303_range-sum-query-immutable.mdx b/apps/docs/content/(01-linear-structures)/prefix-sum/303_range-sum-query-immutable.mdx index 03f223c..9a80ada 100644 --- a/apps/docs/content/(01-linear-structures)/prefix-sum/303_range-sum-query-immutable.mdx +++ b/apps/docs/content/(01-linear-structures)/prefix-sum/303_range-sum-query-immutable.mdx @@ -8,6 +8,11 @@ topics: - { name: "Prefix Sum", slug: "prefix-sum" } video: "2pndAmo_sMA" issue: "https://github.com/prdlk/leetcode/issues/36" +companies: + - { name: "Google", period: "Thirty Days", frequency: 42.3 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Meta", period: "Six Months", frequency: 24.5 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Range Sum Query - Immutable' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/prefix-sum/525_contiguous-array.mdx b/apps/docs/content/(01-linear-structures)/prefix-sum/525_contiguous-array.mdx index 372c87b..e53bb94 100644 --- a/apps/docs/content/(01-linear-structures)/prefix-sum/525_contiguous-array.mdx +++ b/apps/docs/content/(01-linear-structures)/prefix-sum/525_contiguous-array.mdx @@ -7,6 +7,14 @@ topics: - { name: "Hash Table", slug: "hash-table" } - { name: "Prefix Sum", slug: "prefix-sum" } issue: "https://github.com/prdlk/leetcode/issues/39" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Cisco", period: "Three Months", frequency: 100 } + - { name: "Meta", period: "Three Months", frequency: 49.8 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Akamai", period: "Six Months", frequency: 100 } + - { name: "Bloomberg", period: "Six Months", frequency: 40.6 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } sidebar: label: 'Contiguous Array' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/prefix-sum/560_subarray-sum-equals-k.mdx b/apps/docs/content/(01-linear-structures)/prefix-sum/560_subarray-sum-equals-k.mdx index 4e2c017..75f9f71 100644 --- a/apps/docs/content/(01-linear-structures)/prefix-sum/560_subarray-sum-equals-k.mdx +++ b/apps/docs/content/(01-linear-structures)/prefix-sum/560_subarray-sum-equals-k.mdx @@ -8,6 +8,21 @@ topics: - { name: "Prefix Sum", slug: "prefix-sum" } video: "fFVZt-6sgyo" issue: "https://github.com/prdlk/leetcode/issues/38" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 63.8 } + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "Visa", period: "Three Months", frequency: 80.9 } + - { name: "Bloomberg", period: "Three Months", frequency: 74.8 } + - { name: "Salesforce", period: "Three Months", frequency: 64.7 } + - { name: "Amazon", period: "Three Months", frequency: 57.1 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "Accenture", period: "Six Months", frequency: 100 } + - { name: "IBM", period: "Six Months", frequency: 94.5 } + - { name: "Infosys", period: "Six Months", frequency: 76.3 } + - { name: "Apple", period: "Six Months", frequency: 74.7 } + - { name: "josh technology", period: "Six Months", frequency: 74 } + - { name: "Walmart Labs", period: "Six Months", frequency: 70.5 } + - { name: "Yandex", period: "Six Months", frequency: 69.2 } sidebar: label: 'Subarray Sum Equals K' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/prefix-sum/974_subarray-sums-divisible-by-k.mdx b/apps/docs/content/(01-linear-structures)/prefix-sum/974_subarray-sums-divisible-by-k.mdx index 23a4bcd..7172816 100644 --- a/apps/docs/content/(01-linear-structures)/prefix-sum/974_subarray-sums-divisible-by-k.mdx +++ b/apps/docs/content/(01-linear-structures)/prefix-sum/974_subarray-sums-divisible-by-k.mdx @@ -7,6 +7,12 @@ topics: - { name: "Hash Table", slug: "hash-table" } - { name: "Prefix Sum", slug: "prefix-sum" } issue: "https://github.com/prdlk/leetcode/issues/40" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "TikTok", period: "Three Months", frequency: 70.9 } + - { name: "Amazon", period: "Three Months", frequency: 21.2 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Subarray Sums Divisible by K' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/sliding-window/1004_max-consecutive-ones-iii.mdx b/apps/docs/content/(01-linear-structures)/sliding-window/1004_max-consecutive-ones-iii.mdx index 028ddce..03187b2 100644 --- a/apps/docs/content/(01-linear-structures)/sliding-window/1004_max-consecutive-ones-iii.mdx +++ b/apps/docs/content/(01-linear-structures)/sliding-window/1004_max-consecutive-ones-iii.mdx @@ -8,6 +8,17 @@ topics: - { name: "Sliding Window", slug: "sliding-window" } - { name: "Prefix Sum", slug: "prefix-sum" } issue: "https://github.com/prdlk/leetcode/issues/56" +companies: + - { name: "EPAM Systems", period: "Thirty Days", frequency: 89.8 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Tekion", period: "Three Months", frequency: 100 } + - { name: "DE Shaw", period: "Three Months", frequency: 80.2 } + - { name: "Google", period: "Three Months", frequency: 38.7 } + - { name: "Infosys", period: "Six Months", frequency: 67.9 } + - { name: "Yandex", period: "Six Months", frequency: 59.6 } + - { name: "LinkedIn", period: "Six Months", frequency: 54.1 } + - { name: "Microsoft", period: "Six Months", frequency: 42.5 } sidebar: label: 'Max Consecutive Ones III' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/sliding-window/121_best-time-to-buy-and-sell-stock.mdx b/apps/docs/content/(01-linear-structures)/sliding-window/121_best-time-to-buy-and-sell-stock.mdx index 6d359e5..532b5ad 100644 --- a/apps/docs/content/(01-linear-structures)/sliding-window/121_best-time-to-buy-and-sell-stock.mdx +++ b/apps/docs/content/(01-linear-structures)/sliding-window/121_best-time-to-buy-and-sell-stock.mdx @@ -7,6 +7,26 @@ topics: - { name: "Dynamic Programming", slug: "dynamic-programming" } video: "1pkOgXD63yU" issue: "https://github.com/prdlk/leetcode/issues/50" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Infosys", period: "Thirty Days", frequency: 80.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 69.6 } + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Google", period: "Thirty Days", frequency: 65.3 } + - { name: "tcs", period: "Thirty Days", frequency: 58.2 } + - { name: "Atlassian", period: "Three Months", frequency: 100 } + - { name: "Media.net", period: "Three Months", frequency: 100 } + - { name: "Nvidia", period: "Three Months", frequency: 87.7 } + - { name: "Meta", period: "Three Months", frequency: 70.4 } + - { name: "Apple", period: "Three Months", frequency: 69 } + - { name: "Microsoft", period: "Three Months", frequency: 60.5 } + - { name: "Mastercard", period: "Six Months", frequency: 79 } + - { name: "Accenture", period: "Six Months", frequency: 75 } + - { name: "Adobe", period: "Six Months", frequency: 74.3 } + - { name: "Walmart Labs", period: "Six Months", frequency: 70.5 } + - { name: "IBM", period: "Six Months", frequency: 70.1 } + - { name: "TikTok", period: "Six Months", frequency: 55.2 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 53.1 } sidebar: label: 'Best Time to Buy and Sell Stock' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/sliding-window/209_minimum-size-subarray-sum.mdx b/apps/docs/content/(01-linear-structures)/sliding-window/209_minimum-size-subarray-sum.mdx index f2cdfd4..88d21de 100644 --- a/apps/docs/content/(01-linear-structures)/sliding-window/209_minimum-size-subarray-sum.mdx +++ b/apps/docs/content/(01-linear-structures)/sliding-window/209_minimum-size-subarray-sum.mdx @@ -8,6 +8,12 @@ topics: - { name: "Sliding Window", slug: "sliding-window" } - { name: "Prefix Sum", slug: "prefix-sum" } issue: "https://github.com/prdlk/leetcode/issues/54" +companies: + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Google", period: "Three Months", frequency: 45 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } sidebar: label: 'Minimum Size Subarray Sum' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/sliding-window/3_longest-substring-without-repeating-characters.mdx b/apps/docs/content/(01-linear-structures)/sliding-window/3_longest-substring-without-repeating-characters.mdx index 4c50c41..c785db2 100644 --- a/apps/docs/content/(01-linear-structures)/sliding-window/3_longest-substring-without-repeating-characters.mdx +++ b/apps/docs/content/(01-linear-structures)/sliding-window/3_longest-substring-without-repeating-characters.mdx @@ -8,6 +8,35 @@ topics: - { name: "Sliding Window", slug: "sliding-window" } video: "wiGpQwVHdE0" issue: "https://github.com/prdlk/leetcode/issues/51" +companies: + - { name: "Ola Cabs", period: "Thirty Days", frequency: 100 } + - { name: "Visa", period: "Thirty Days", frequency: 100 } + - { name: "Amazon", period: "Thirty Days", frequency: 84.9 } + - { name: "Microsoft", period: "Thirty Days", frequency: 75.6 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Meta", period: "Thirty Days", frequency: 63.8 } + - { name: "Google", period: "Thirty Days", frequency: 63.7 } + - { name: "tcs", period: "Thirty Days", frequency: 58.2 } + - { name: "Cognizant", period: "Three Months", frequency: 100 } + - { name: "Optum", period: "Three Months", frequency: 100 } + - { name: "Spotify", period: "Three Months", frequency: 100 } + - { name: "Deloitte", period: "Three Months", frequency: 89.1 } + - { name: "Infosys", period: "Three Months", frequency: 87.4 } + - { name: "Apple", period: "Three Months", frequency: 69 } + - { name: "Goldman Sachs", period: "Three Months", frequency: 66.3 } + - { name: "Media.net", period: "Six Months", frequency: 100 } + - { name: "Wipro", period: "Six Months", frequency: 100 } + - { name: "Wissen Technology", period: "Six Months", frequency: 100 } + - { name: "Zoho", period: "Six Months", frequency: 100 } + - { name: "Qualcomm", period: "Six Months", frequency: 92 } + - { name: "Turing", period: "Six Months", frequency: 89 } + - { name: "EPAM Systems", period: "Six Months", frequency: 86.7 } + - { name: "Netflix", period: "Six Months", frequency: 83.1 } + - { name: "Tesla", period: "Six Months", frequency: 80.9 } + - { name: "Yandex", period: "Six Months", frequency: 69.2 } + - { name: "Agoda", period: "Six Months", frequency: 65 } + - { name: "IBM", period: "Six Months", frequency: 60.1 } + - { name: "LinkedIn", period: "Six Months", frequency: 54.1 } sidebar: label: 'Longest Substring Without Repeating Characters' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/sliding-window/424_longest-repeating-character-replacement.mdx b/apps/docs/content/(01-linear-structures)/sliding-window/424_longest-repeating-character-replacement.mdx index 49d055c..185b036 100644 --- a/apps/docs/content/(01-linear-structures)/sliding-window/424_longest-repeating-character-replacement.mdx +++ b/apps/docs/content/(01-linear-structures)/sliding-window/424_longest-repeating-character-replacement.mdx @@ -8,6 +8,15 @@ topics: - { name: "Sliding Window", slug: "sliding-window" } video: "gqXU1UyA8pk" issue: "https://github.com/prdlk/leetcode/issues/52" +companies: + - { name: "Zoho", period: "Thirty Days", frequency: 100 } + - { name: "Google", period: "Thirty Days", frequency: 46.6 } + - { name: "DE Shaw", period: "Three Months", frequency: 91.8 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Amazon", period: "Three Months", frequency: 34.6 } + - { name: "Meta", period: "Six Months", frequency: 32.7 } sidebar: label: 'Longest Repeating Character Replacement' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/sliding-window/567_permutation-in-string.mdx b/apps/docs/content/(01-linear-structures)/sliding-window/567_permutation-in-string.mdx index e5271fc..9dd06f8 100644 --- a/apps/docs/content/(01-linear-structures)/sliding-window/567_permutation-in-string.mdx +++ b/apps/docs/content/(01-linear-structures)/sliding-window/567_permutation-in-string.mdx @@ -9,6 +9,14 @@ topics: - { name: "Sliding Window", slug: "sliding-window" } video: "UbyhOgBN834" issue: "https://github.com/prdlk/leetcode/issues/53" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 63.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Apple", period: "Six Months", frequency: 48.1 } sidebar: label: 'Permutation in String' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/sliding-window/643_maximum-average-subarray-i.mdx b/apps/docs/content/(01-linear-structures)/sliding-window/643_maximum-average-subarray-i.mdx index bc7bd91..b629029 100644 --- a/apps/docs/content/(01-linear-structures)/sliding-window/643_maximum-average-subarray-i.mdx +++ b/apps/docs/content/(01-linear-structures)/sliding-window/643_maximum-average-subarray-i.mdx @@ -6,6 +6,13 @@ topics: - { name: "Array", slug: "array" } - { name: "Sliding Window", slug: "sliding-window" } issue: "https://github.com/prdlk/leetcode/issues/55" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Amazon", period: "Thirty Days", frequency: 55.9 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "tcs", period: "Three Months", frequency: 57.2 } + - { name: "Meta", period: "Six Months", frequency: 32.7 } sidebar: label: 'Maximum Average Subarray I' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/sliding-window/76_minimum-window-substring.mdx b/apps/docs/content/(01-linear-structures)/sliding-window/76_minimum-window-substring.mdx index 4f278fd..6b355b5 100644 --- a/apps/docs/content/(01-linear-structures)/sliding-window/76_minimum-window-substring.mdx +++ b/apps/docs/content/(01-linear-structures)/sliding-window/76_minimum-window-substring.mdx @@ -7,6 +7,15 @@ topics: - { name: "String", slug: "string" } - { name: "Sliding Window", slug: "sliding-window" } issue: "https://github.com/prdlk/leetcode/issues/57" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 55.9 } + - { name: "Lyft", period: "Three Months", frequency: 93.3 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "Oracle", period: "Six Months", frequency: 78.7 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 44.8 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'Minimum Window Substring' badge: 'Hard' diff --git a/apps/docs/content/(01-linear-structures)/stack/150_evaluate-reverse-polish-notation.mdx b/apps/docs/content/(01-linear-structures)/stack/150_evaluate-reverse-polish-notation.mdx index 4efc5c2..844a9cc 100644 --- a/apps/docs/content/(01-linear-structures)/stack/150_evaluate-reverse-polish-notation.mdx +++ b/apps/docs/content/(01-linear-structures)/stack/150_evaluate-reverse-polish-notation.mdx @@ -8,6 +8,12 @@ topics: - { name: "Stack", slug: "stack" } video: "iu0082c4HDE" issue: "https://github.com/prdlk/leetcode/issues/69" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Yandex", period: "Six Months", frequency: 59.6 } + - { name: "Meta", period: "Six Months", frequency: 38.7 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'Evaluate Reverse Polish Notation' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/stack/155_min-stack.mdx b/apps/docs/content/(01-linear-structures)/stack/155_min-stack.mdx index 16781d0..0fd28a5 100644 --- a/apps/docs/content/(01-linear-structures)/stack/155_min-stack.mdx +++ b/apps/docs/content/(01-linear-structures)/stack/155_min-stack.mdx @@ -7,6 +7,15 @@ topics: - { name: "Design", slug: "design" } video: "qkLl7nAwDPo" issue: "https://github.com/prdlk/leetcode/issues/68" +companies: + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "Google", period: "Three Months", frequency: 28.8 } + - { name: "Odoo", period: "Six Months", frequency: 100 } + - { name: "UiPath", period: "Six Months", frequency: 100 } + - { name: "Infosys", period: "Six Months", frequency: 67.9 } + - { name: "Bloomberg", period: "Six Months", frequency: 45.6 } sidebar: label: 'Min Stack' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/stack/20_valid-parentheses.mdx b/apps/docs/content/(01-linear-structures)/stack/20_valid-parentheses.mdx index 8119a36..cc3dbf4 100644 --- a/apps/docs/content/(01-linear-structures)/stack/20_valid-parentheses.mdx +++ b/apps/docs/content/(01-linear-structures)/stack/20_valid-parentheses.mdx @@ -8,6 +8,24 @@ topics: - { name: "Bracket Sequences", slug: "bracket-sequences" } video: "WTzjTskDFMg" issue: "https://github.com/prdlk/leetcode/issues/67" +companies: + - { name: "BlackRock", period: "Thirty Days", frequency: 100 } + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Amazon", period: "Thirty Days", frequency: 61.3 } + - { name: "Google", period: "Thirty Days", frequency: 42.3 } + - { name: "Accolite", period: "Three Months", frequency: 100 } + - { name: "Intuit", period: "Three Months", frequency: 73.2 } + - { name: "Bloomberg", period: "Three Months", frequency: 68.3 } + - { name: "Meta", period: "Three Months", frequency: 65.3 } + - { name: "tcs", period: "Three Months", frequency: 57.2 } + - { name: "Autodesk", period: "Six Months", frequency: 100 } + - { name: "Criteo", period: "Six Months", frequency: 100 } + - { name: "Odoo", period: "Six Months", frequency: 100 } + - { name: "Tripadvisor", period: "Six Months", frequency: 100 } + - { name: "Virtu Financial", period: "Six Months", frequency: 100 } + - { name: "IBM", period: "Six Months", frequency: 91.1 } + - { name: "Epic Systems", period: "Six Months", frequency: 89.6 } + - { name: "LinkedIn", period: "Six Months", frequency: 85.6 } sidebar: label: 'Valid Parentheses' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/stack/224_basic-calculator.mdx b/apps/docs/content/(01-linear-structures)/stack/224_basic-calculator.mdx index 4655e52..c630827 100644 --- a/apps/docs/content/(01-linear-structures)/stack/224_basic-calculator.mdx +++ b/apps/docs/content/(01-linear-structures)/stack/224_basic-calculator.mdx @@ -8,6 +8,12 @@ topics: - { name: "Stack", slug: "stack" } - { name: "Recursion", slug: "recursion" } issue: "https://github.com/prdlk/leetcode/issues/71" +companies: + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "Meta", period: "Six Months", frequency: 24.5 } sidebar: label: 'Basic Calculator' badge: 'Hard' diff --git a/apps/docs/content/(01-linear-structures)/stack/71_simplify-path.mdx b/apps/docs/content/(01-linear-structures)/stack/71_simplify-path.mdx index 185a0b1..5160bbd 100644 --- a/apps/docs/content/(01-linear-structures)/stack/71_simplify-path.mdx +++ b/apps/docs/content/(01-linear-structures)/stack/71_simplify-path.mdx @@ -6,6 +6,13 @@ topics: - { name: "String", slug: "string" } - { name: "Stack", slug: "stack" } issue: "https://github.com/prdlk/leetcode/issues/70" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Google", period: "Three Months", frequency: 28.8 } + - { name: "Amazon", period: "Three Months", frequency: 21.2 } + - { name: "Snowflake", period: "Six Months", frequency: 58.7 } + - { name: "Meta", period: "Six Months", frequency: 50.6 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Simplify Path' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/11_container-with-most-water.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/11_container-with-most-water.mdx index c3c7b73..8743dab 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/11_container-with-most-water.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/11_container-with-most-water.mdx @@ -8,6 +8,18 @@ topics: - { name: "Greedy", slug: "greedy" } video: "UuiTKBwPgAo" issue: "https://github.com/prdlk/leetcode/issues/44" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Amazon", period: "Thirty Days", frequency: 75.8 } + - { name: "Infosys", period: "Thirty Days", frequency: 68.6 } + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "tcs", period: "Thirty Days", frequency: 67.6 } + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Google", period: "Thirty Days", frequency: 62 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Goldman Sachs", period: "Three Months", frequency: 57 } + - { name: "Walmart Labs", period: "Six Months", frequency: 70.5 } + - { name: "IBM", period: "Six Months", frequency: 60.1 } sidebar: label: 'Container With Most Water' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/125_valid-palindrome.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/125_valid-palindrome.mdx index 9c57972..3a44767 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/125_valid-palindrome.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/125_valid-palindrome.mdx @@ -7,6 +7,18 @@ topics: - { name: "String", slug: "string" } video: "jJXJ16kPFWg" issue: "https://github.com/prdlk/leetcode/issues/41" +companies: + - { name: "tcs", period: "Thirty Days", frequency: 58.2 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Bloomberg", period: "Three Months", frequency: 79.9 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Deloitte", period: "Six Months", frequency: 81 } + - { name: "Cognizant", period: "Six Months", frequency: 76.3 } + - { name: "Axon", period: "Six Months", frequency: 75.4 } + - { name: "Apple", period: "Six Months", frequency: 64.8 } sidebar: label: 'Valid Palindrome' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/15_3sum.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/15_3sum.mdx index 8b76afd..ba98efa 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/15_3sum.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/15_3sum.mdx @@ -8,6 +8,22 @@ topics: - { name: "Sorting", slug: "sorting" } video: "jzZsG8n2R9A" issue: "https://github.com/prdlk/leetcode/issues/43" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 69.6 } + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Google", period: "Thirty Days", frequency: 66.8 } + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Meta", period: "Thirty Days", frequency: 63.8 } + - { name: "Apple", period: "Three Months", frequency: 80.4 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "tcs", period: "Three Months", frequency: 57.2 } + - { name: "Cisco", period: "Six Months", frequency: 100 } + - { name: "Wissen Technology", period: "Six Months", frequency: 100 } + - { name: "eBay", period: "Six Months", frequency: 75.2 } + - { name: "Accenture", period: "Six Months", frequency: 75 } + - { name: "Visa", period: "Six Months", frequency: 69.7 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 53.1 } sidebar: label: '3Sum' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/167_two-sum-ii-input-array-is-sorted.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/167_two-sum-ii-input-array-is-sorted.mdx index aadccd2..16def17 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/167_two-sum-ii-input-array-is-sorted.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/167_two-sum-ii-input-array-is-sorted.mdx @@ -8,6 +8,14 @@ topics: - { name: "Binary Search", slug: "binary-search" } video: "cQ1Oz4ckceM" issue: "https://github.com/prdlk/leetcode/issues/42" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 65.8 } + - { name: "Google", period: "Thirty Days", frequency: 46.6 } + - { name: "tcs", period: "Three Months", frequency: 57.2 } + - { name: "Meta", period: "Three Months", frequency: 54.8 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Oracle", period: "Six Months", frequency: 78.7 } + - { name: "Bloomberg", period: "Six Months", frequency: 40.6 } sidebar: label: 'Two Sum II - Input Array Is Sorted' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/189_rotate-array.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/189_rotate-array.mdx index 3caa8d1..17cc969 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/189_rotate-array.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/189_rotate-array.mdx @@ -7,6 +7,17 @@ topics: - { name: "Math", slug: "math" } - { name: "Two Pointers", slug: "two-pointers" } issue: "https://github.com/prdlk/leetcode/issues/47" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Google", period: "Thirty Days", frequency: 46.6 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "tcs", period: "Three Months", frequency: 57.2 } + - { name: "Meta", period: "Three Months", frequency: 54.8 } + - { name: "Box", period: "Six Months", frequency: 100 } + - { name: "TikTok", period: "Six Months", frequency: 55.2 } + - { name: "Apple", period: "Six Months", frequency: 48.1 } sidebar: label: 'Rotate Array' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/344_reverse-string.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/344_reverse-string.mdx index a421e58..b1ef7c9 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/344_reverse-string.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/344_reverse-string.mdx @@ -6,6 +6,14 @@ topics: - { name: "Two Pointers", slug: "two-pointers" } - { name: "String", slug: "string" } video: "_d0T_2Lk2qA" +companies: + - { name: "tcs", period: "Thirty Days", frequency: 58.2 } + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Qualcomm", period: "Six Months", frequency: 80.7 } sidebar: label: 'Reverse String' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/392_is-subsequence.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/392_is-subsequence.mdx index 1127717..1f01e5b 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/392_is-subsequence.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/392_is-subsequence.mdx @@ -8,6 +8,12 @@ topics: - { name: "Dynamic Programming", slug: "dynamic-programming" } video: "99RVfqklbCE" issue: "https://github.com/prdlk/leetcode/issues/45" +companies: + - { name: "Amazon", period: "Three Months", frequency: 34.6 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } + - { name: "Google", period: "Six Months", frequency: 25.4 } + - { name: "Meta", period: "Six Months", frequency: 24.5 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Is Subsequence' badge: 'Easy' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/42_trapping-rain-water.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/42_trapping-rain-water.mdx index 13b33ac..3b23d13 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/42_trapping-rain-water.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/42_trapping-rain-water.mdx @@ -9,6 +9,20 @@ topics: - { name: "Stack", slug: "stack" } - { name: "Monotonic Stack", slug: "monotonic-stack" } issue: "https://github.com/prdlk/leetcode/issues/211" +companies: + - { name: "Ola Cabs", period: "Thirty Days", frequency: 90.7 } + - { name: "Amazon", period: "Thirty Days", frequency: 80.7 } + - { name: "Goldman Sachs", period: "Thirty Days", frequency: 71.7 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Infosys", period: "Thirty Days", frequency: 68.6 } + - { name: "Google", period: "Thirty Days", frequency: 63.7 } + - { name: "Snowflake", period: "Three Months", frequency: 90.3 } + - { name: "Meta", period: "Three Months", frequency: 58.9 } + - { name: "Microsoft", period: "Three Months", frequency: 57.2 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Docusign", period: "Six Months", frequency: 100 } + - { name: "Qualcomm", period: "Six Months", frequency: 80.7 } + - { name: "Nvidia", period: "Six Months", frequency: 78.7 } sidebar: label: 'Trapping Rain Water' badge: 'Hard' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/80_remove-duplicates-from-sorted-array-ii.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/80_remove-duplicates-from-sorted-array-ii.mdx index e6c758f..0e63a46 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/80_remove-duplicates-from-sorted-array-ii.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/80_remove-duplicates-from-sorted-array-ii.mdx @@ -6,6 +6,10 @@ topics: - { name: "Array", slug: "array" } - { name: "Two Pointers", slug: "two-pointers" } issue: "https://github.com/prdlk/leetcode/issues/48" +companies: + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Amazon", period: "Three Months", frequency: 34.6 } + - { name: "Meta", period: "Six Months", frequency: 32.7 } sidebar: label: 'Remove Duplicates from Sorted Array II' badge: 'Medium' diff --git a/apps/docs/content/(01-linear-structures)/two-pointers/977_squares-of-a-sorted-array.mdx b/apps/docs/content/(01-linear-structures)/two-pointers/977_squares-of-a-sorted-array.mdx index a2bde27..c833ec7 100644 --- a/apps/docs/content/(01-linear-structures)/two-pointers/977_squares-of-a-sorted-array.mdx +++ b/apps/docs/content/(01-linear-structures)/two-pointers/977_squares-of-a-sorted-array.mdx @@ -8,6 +8,15 @@ topics: - { name: "Sorting", slug: "sorting" } video: "FPCZsG_AkUg" issue: "https://github.com/prdlk/leetcode/issues/46" +companies: + - { name: "Google", period: "Thirty Days", frequency: 42.3 } + - { name: "Instacart", period: "Three Months", frequency: 100 } + - { name: "Uber", period: "Three Months", frequency: 80 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Meta", period: "Three Months", frequency: 49.8 } + - { name: "Amazon", period: "Three Months", frequency: 46 } + - { name: "tcs", period: "Six Months", frequency: 60 } + - { name: "Yandex", period: "Six Months", frequency: 59.6 } sidebar: label: 'Squares of a Sorted Array' badge: 'Easy' diff --git a/apps/docs/content/(02-nodal-grid)/hybrid-structures/146_lru-cache.mdx b/apps/docs/content/(02-nodal-grid)/hybrid-structures/146_lru-cache.mdx index 06de793..db531b9 100644 --- a/apps/docs/content/(02-nodal-grid)/hybrid-structures/146_lru-cache.mdx +++ b/apps/docs/content/(02-nodal-grid)/hybrid-structures/146_lru-cache.mdx @@ -9,6 +9,35 @@ topics: - { name: "Doubly-Linked List", slug: "doubly-linked-list" } video: "7ABFKPK2hD4" issue: "https://github.com/prdlk/leetcode/issues/87" +companies: + - { name: "NetApp", period: "Thirty Days", frequency: 100 } + - { name: "Adobe", period: "Thirty Days", frequency: 83.5 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 69.6 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "TikTok", period: "Three Months", frequency: 100 } + - { name: "Palo Alto Networks", period: "Three Months", frequency: 92.8 } + - { name: "Apple", period: "Three Months", frequency: 88.5 } + - { name: "Goldman Sachs", period: "Three Months", frequency: 66.3 } + - { name: "Microsoft", period: "Three Months", frequency: 53.2 } + - { name: "Airwallex", period: "Six Months", frequency: 100 } + - { name: "Docusign", period: "Six Months", frequency: 100 } + - { name: "Moloco", period: "Six Months", frequency: 100 } + - { name: "Nutanix", period: "Six Months", frequency: 100 } + - { name: "Oracle", period: "Six Months", frequency: 100 } + - { name: "Twitch", period: "Six Months", frequency: 100 } + - { name: "Snap", period: "Six Months", frequency: 92.4 } + - { name: "Qualcomm", period: "Six Months", frequency: 92 } + - { name: "Nvidia", period: "Six Months", frequency: 91.1 } + - { name: "ByteDance", period: "Six Months", frequency: 88.6 } + - { name: "MongoDB", period: "Six Months", frequency: 87.7 } + - { name: "Expedia", period: "Six Months", frequency: 87.5 } + - { name: "eBay", period: "Six Months", frequency: 86.1 } + - { name: "LinkedIn", period: "Six Months", frequency: 74.9 } + - { name: "Visa", period: "Six Months", frequency: 69.7 } + - { name: "Uber", period: "Six Months", frequency: 61.9 } + - { name: "Salesforce", period: "Six Months", frequency: 50.2 } sidebar: label: 'LRU Cache' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/hybrid-structures/2_add-two-numbers.mdx b/apps/docs/content/(02-nodal-grid)/hybrid-structures/2_add-two-numbers.mdx index 62837b6..f139ea2 100644 --- a/apps/docs/content/(02-nodal-grid)/hybrid-structures/2_add-two-numbers.mdx +++ b/apps/docs/content/(02-nodal-grid)/hybrid-structures/2_add-two-numbers.mdx @@ -8,6 +8,17 @@ topics: - { name: "Recursion", slug: "recursion" } video: "wgFPrzTjm7s" issue: "https://github.com/prdlk/leetcode/issues/88" +companies: + - { name: "Ola Cabs", period: "Thirty Days", frequency: 95.8 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Google", period: "Thirty Days", frequency: 72.8 } + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Meta", period: "Thirty Days", frequency: 63.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 61.3 } + - { name: "EarnIn", period: "Six Months", frequency: 100 } + - { name: "Jane Street", period: "Six Months", frequency: 100 } + - { name: "Palo Alto Networks", period: "Six Months", frequency: 75.9 } + - { name: "tcs", period: "Six Months", frequency: 43.5 } sidebar: label: 'Add Two Numbers' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/hybrid-structures/380_insert-delete-getrandom-o1.mdx b/apps/docs/content/(02-nodal-grid)/hybrid-structures/380_insert-delete-getrandom-o1.mdx index b912348..683ec80 100644 --- a/apps/docs/content/(02-nodal-grid)/hybrid-structures/380_insert-delete-getrandom-o1.mdx +++ b/apps/docs/content/(02-nodal-grid)/hybrid-structures/380_insert-delete-getrandom-o1.mdx @@ -9,6 +9,19 @@ topics: - { name: "Design", slug: "design" } - { name: "Randomized", slug: "randomized" } issue: "https://github.com/prdlk/leetcode/issues/90" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Apple", period: "Three Months", frequency: 80.4 } + - { name: "Google", period: "Three Months", frequency: 32.7 } + - { name: "Axon", period: "Six Months", frequency: 100 } + - { name: "Okta", period: "Six Months", frequency: 100 } + - { name: "Quora", period: "Six Months", frequency: 100 } + - { name: "SoFi", period: "Six Months", frequency: 100 } + - { name: "Uber", period: "Six Months", frequency: 61.9 } + - { name: "Yandex", period: "Six Months", frequency: 59.6 } + - { name: "LinkedIn", period: "Six Months", frequency: 54.1 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Insert Delete GetRandom O(1)' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/linked-list/141_linked-list-cycle.mdx b/apps/docs/content/(02-nodal-grid)/linked-list/141_linked-list-cycle.mdx index a0d73a5..af0a9ff 100644 --- a/apps/docs/content/(02-nodal-grid)/linked-list/141_linked-list-cycle.mdx +++ b/apps/docs/content/(02-nodal-grid)/linked-list/141_linked-list-cycle.mdx @@ -9,6 +9,13 @@ topics: - { name: "Floyd's Cycle Finding Algorithm", slug: "floyds-cycle-finding-algorithm" } video: "gBTe7lFR3vc" issue: "https://github.com/prdlk/leetcode/issues/79" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Nvidia", period: "Three Months", frequency: 87.7 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'Linked List Cycle' badge: 'Easy' diff --git a/apps/docs/content/(02-nodal-grid)/linked-list/143_reorder-list.mdx b/apps/docs/content/(02-nodal-grid)/linked-list/143_reorder-list.mdx index 925f7fd..6f07213 100644 --- a/apps/docs/content/(02-nodal-grid)/linked-list/143_reorder-list.mdx +++ b/apps/docs/content/(02-nodal-grid)/linked-list/143_reorder-list.mdx @@ -8,6 +8,12 @@ topics: - { name: "Stack", slug: "stack" } - { name: "Recursion", slug: "recursion" } issue: "https://github.com/prdlk/leetcode/issues/81" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Google", period: "Thirty Days", frequency: 42.3 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Amazon", period: "Three Months", frequency: 21.2 } sidebar: label: 'Reorder List' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/linked-list/19_remove-nth-node-from-end-of-list.mdx b/apps/docs/content/(02-nodal-grid)/linked-list/19_remove-nth-node-from-end-of-list.mdx index f379d4c..76dc23c 100644 --- a/apps/docs/content/(02-nodal-grid)/linked-list/19_remove-nth-node-from-end-of-list.mdx +++ b/apps/docs/content/(02-nodal-grid)/linked-list/19_remove-nth-node-from-end-of-list.mdx @@ -6,6 +6,12 @@ topics: - { name: "Linked List", slug: "linked-list" } - { name: "Two Pointers", slug: "two-pointers" } issue: "https://github.com/prdlk/leetcode/issues/80" +companies: + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Amazon", period: "Three Months", frequency: 51.1 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Remove Nth Node From End of List' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/linked-list/206_reverse-linked-list.mdx b/apps/docs/content/(02-nodal-grid)/linked-list/206_reverse-linked-list.mdx index 7a86f6a..981e1e1 100644 --- a/apps/docs/content/(02-nodal-grid)/linked-list/206_reverse-linked-list.mdx +++ b/apps/docs/content/(02-nodal-grid)/linked-list/206_reverse-linked-list.mdx @@ -7,6 +7,16 @@ topics: - { name: "Recursion", slug: "recursion" } video: "G0_I-ZF0S38" issue: "https://github.com/prdlk/leetcode/issues/77" +companies: + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Nokia", period: "Three Months", frequency: 100 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "tcs", period: "Three Months", frequency: 57.2 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Apple", period: "Six Months", frequency: 78.4 } sidebar: label: 'Reverse Linked List' badge: 'Easy' diff --git a/apps/docs/content/(02-nodal-grid)/linked-list/21_merge-two-sorted-lists.mdx b/apps/docs/content/(02-nodal-grid)/linked-list/21_merge-two-sorted-lists.mdx index 089d412..dab4cab 100644 --- a/apps/docs/content/(02-nodal-grid)/linked-list/21_merge-two-sorted-lists.mdx +++ b/apps/docs/content/(02-nodal-grid)/linked-list/21_merge-two-sorted-lists.mdx @@ -7,6 +7,13 @@ topics: - { name: "Recursion", slug: "recursion" } video: "XIdigk956u0" issue: "https://github.com/prdlk/leetcode/issues/78" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Accenture", period: "Six Months", frequency: 75 } sidebar: label: 'Merge Two Sorted Lists' badge: 'Easy' diff --git a/apps/docs/content/(02-nodal-grid)/linked-list/82_remove-duplicates-from-sorted-list-ii.mdx b/apps/docs/content/(02-nodal-grid)/linked-list/82_remove-duplicates-from-sorted-list-ii.mdx index ab37ac5..50775ba 100644 --- a/apps/docs/content/(02-nodal-grid)/linked-list/82_remove-duplicates-from-sorted-list-ii.mdx +++ b/apps/docs/content/(02-nodal-grid)/linked-list/82_remove-duplicates-from-sorted-list-ii.mdx @@ -6,6 +6,11 @@ topics: - { name: "Linked List", slug: "linked-list" } - { name: "Two Pointers", slug: "two-pointers" } issue: "https://github.com/prdlk/leetcode/issues/84" +companies: + - { name: "Amazon", period: "Three Months", frequency: 34.6 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "Bloomberg", period: "Six Months", frequency: 34.2 } + - { name: "Meta", period: "Six Months", frequency: 24.5 } sidebar: label: 'Remove Duplicates from Sorted List II' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/linked-list/876_middle-of-the-linked-list.mdx b/apps/docs/content/(02-nodal-grid)/linked-list/876_middle-of-the-linked-list.mdx index 2a635cb..d74cb39 100644 --- a/apps/docs/content/(02-nodal-grid)/linked-list/876_middle-of-the-linked-list.mdx +++ b/apps/docs/content/(02-nodal-grid)/linked-list/876_middle-of-the-linked-list.mdx @@ -6,6 +6,13 @@ topics: - { name: "Linked List", slug: "linked-list" } - { name: "Two Pointers", slug: "two-pointers" } issue: "https://github.com/prdlk/leetcode/issues/82" +companies: + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "Meta", period: "Three Months", frequency: 49.8 } + - { name: "Amazon", period: "Three Months", frequency: 39.1 } + - { name: "IBM", period: "Six Months", frequency: 60.1 } + - { name: "Microsoft", period: "Six Months", frequency: 37.9 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'Middle of the Linked List' badge: 'Easy' diff --git a/apps/docs/content/(02-nodal-grid)/linked-list/92_reverse-linked-list-ii.mdx b/apps/docs/content/(02-nodal-grid)/linked-list/92_reverse-linked-list-ii.mdx index ac67e24..444acce 100644 --- a/apps/docs/content/(02-nodal-grid)/linked-list/92_reverse-linked-list-ii.mdx +++ b/apps/docs/content/(02-nodal-grid)/linked-list/92_reverse-linked-list-ii.mdx @@ -5,6 +5,11 @@ icon: dot topics: - { name: "Linked List", slug: "linked-list" } issue: "https://github.com/prdlk/leetcode/issues/83" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Google", period: "Three Months", frequency: 28.8 } sidebar: label: 'Reverse Linked List II' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/matrix-index-math/36_valid-sudoku.mdx b/apps/docs/content/(02-nodal-grid)/matrix-index-math/36_valid-sudoku.mdx index 49d3553..cfec90d 100644 --- a/apps/docs/content/(02-nodal-grid)/matrix-index-math/36_valid-sudoku.mdx +++ b/apps/docs/content/(02-nodal-grid)/matrix-index-math/36_valid-sudoku.mdx @@ -7,6 +7,14 @@ topics: - { name: "Hash Table", slug: "hash-table" } - { name: "Matrix", slug: "matrix" } issue: "https://github.com/prdlk/leetcode/issues/94" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Apple", period: "Three Months", frequency: 69 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "Confluent", period: "Six Months", frequency: 100 } + - { name: "Meta", period: "Six Months", frequency: 32.7 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } sidebar: label: 'Valid Sudoku' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/matrix-index-math/48_rotate-image.mdx b/apps/docs/content/(02-nodal-grid)/matrix-index-math/48_rotate-image.mdx index f414b6b..39f6b2d 100644 --- a/apps/docs/content/(02-nodal-grid)/matrix-index-math/48_rotate-image.mdx +++ b/apps/docs/content/(02-nodal-grid)/matrix-index-math/48_rotate-image.mdx @@ -8,6 +8,15 @@ topics: - { name: "Matrix", slug: "matrix" } video: "fMSJSS7eO1w" issue: "https://github.com/prdlk/leetcode/issues/91" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Google", period: "Three Months", frequency: 51.1 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Apple", period: "Six Months", frequency: 64.8 } + - { name: "Capital One", period: "Six Months", frequency: 64.2 } + - { name: "IBM", period: "Six Months", frequency: 60.1 } sidebar: label: 'Rotate Image' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/matrix-index-math/54_spiral-matrix.mdx b/apps/docs/content/(02-nodal-grid)/matrix-index-math/54_spiral-matrix.mdx index 97b3921..be20afb 100644 --- a/apps/docs/content/(02-nodal-grid)/matrix-index-math/54_spiral-matrix.mdx +++ b/apps/docs/content/(02-nodal-grid)/matrix-index-math/54_spiral-matrix.mdx @@ -8,6 +8,17 @@ topics: - { name: "Simulation", slug: "simulation" } video: "BJnMZNwUk1M" issue: "https://github.com/prdlk/leetcode/issues/92" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "Amazon", period: "Three Months", frequency: 46 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Capital One", period: "Six Months", frequency: 73.8 } + - { name: "tcs", period: "Six Months", frequency: 69.7 } + - { name: "Apple", period: "Six Months", frequency: 64.8 } + - { name: "Infosys", period: "Six Months", frequency: 56.2 } + - { name: "TikTok", period: "Six Months", frequency: 55.2 } sidebar: label: 'Spiral Matrix' badge: 'Medium' diff --git a/apps/docs/content/(02-nodal-grid)/matrix-index-math/73_set-matrix-zeroes.mdx b/apps/docs/content/(02-nodal-grid)/matrix-index-math/73_set-matrix-zeroes.mdx index ee22440..5ff91e2 100644 --- a/apps/docs/content/(02-nodal-grid)/matrix-index-math/73_set-matrix-zeroes.mdx +++ b/apps/docs/content/(02-nodal-grid)/matrix-index-math/73_set-matrix-zeroes.mdx @@ -8,6 +8,13 @@ topics: - { name: "Matrix", slug: "matrix" } video: "T41rL0L3Pnw" issue: "https://github.com/prdlk/leetcode/issues/93" +companies: + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Amazon", period: "Three Months", frequency: 48.7 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Google", period: "Three Months", frequency: 32.7 } + - { name: "tcs", period: "Six Months", frequency: 43.5 } sidebar: label: 'Set Matrix Zeroes' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/binary-search-tree/230_kth-smallest-element-in-a-bst.mdx b/apps/docs/content/(03-hierarchical)/binary-search-tree/230_kth-smallest-element-in-a-bst.mdx index 2c1481e..d6321ff 100644 --- a/apps/docs/content/(03-hierarchical)/binary-search-tree/230_kth-smallest-element-in-a-bst.mdx +++ b/apps/docs/content/(03-hierarchical)/binary-search-tree/230_kth-smallest-element-in-a-bst.mdx @@ -9,6 +9,13 @@ topics: - { name: "Binary Tree", slug: "binary-tree" } video: "5LUXSvjmGCw" issue: "https://github.com/prdlk/leetcode/issues/112" +companies: + - { name: "tcs", period: "Thirty Days", frequency: 74.3 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Uber", period: "Six Months", frequency: 71.5 } + - { name: "Meta", period: "Six Months", frequency: 24.5 } sidebar: label: 'Kth Smallest Element in a BST' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/binary-search-tree/235_lowest-common-ancestor-of-a-binary-search-tree.mdx b/apps/docs/content/(03-hierarchical)/binary-search-tree/235_lowest-common-ancestor-of-a-binary-search-tree.mdx index 7a78c59..a18acf5 100644 --- a/apps/docs/content/(03-hierarchical)/binary-search-tree/235_lowest-common-ancestor-of-a-binary-search-tree.mdx +++ b/apps/docs/content/(03-hierarchical)/binary-search-tree/235_lowest-common-ancestor-of-a-binary-search-tree.mdx @@ -11,6 +11,12 @@ topics: - { name: "Lowest Common Ancestor", slug: "lowest-common-ancestor" } video: "gs2LMfuOR9k" issue: "https://github.com/prdlk/leetcode/issues/113" +companies: + - { name: "BlackRock", period: "Thirty Days", frequency: 76.6 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } + - { name: "Amazon", period: "Six Months", frequency: 30.1 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } + - { name: "Google", period: "Six Months", frequency: 21.9 } sidebar: label: 'Lowest Common Ancestor of a Binary Search Tree' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/binary-search-tree/98_validate-binary-search-tree.mdx b/apps/docs/content/(03-hierarchical)/binary-search-tree/98_validate-binary-search-tree.mdx index 84c14c7..74b2890 100644 --- a/apps/docs/content/(03-hierarchical)/binary-search-tree/98_validate-binary-search-tree.mdx +++ b/apps/docs/content/(03-hierarchical)/binary-search-tree/98_validate-binary-search-tree.mdx @@ -9,6 +9,13 @@ topics: - { name: "Binary Tree", slug: "binary-tree" } video: "s6ATEkipzow" issue: "https://github.com/prdlk/leetcode/issues/111" +companies: + - { name: "Ola Cabs", period: "Thirty Days", frequency: 76.7 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Amazon", period: "Three Months", frequency: 34.6 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Google", period: "Three Months", frequency: 17.3 } sidebar: label: 'Validate Binary Search Tree' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/heap-priority-queue/215_kth-largest-element-in-an-array.mdx b/apps/docs/content/(03-hierarchical)/heap-priority-queue/215_kth-largest-element-in-an-array.mdx index 9c52705..a15271f 100644 --- a/apps/docs/content/(03-hierarchical)/heap-priority-queue/215_kth-largest-element-in-an-array.mdx +++ b/apps/docs/content/(03-hierarchical)/heap-priority-queue/215_kth-largest-element-in-an-array.mdx @@ -10,6 +10,18 @@ topics: - { name: "Quickselect", slug: "quickselect" } video: "XEmy13g1Qxc" issue: "https://github.com/prdlk/leetcode/issues/118" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 70.8 } + - { name: "Spotify", period: "Three Months", frequency: 90.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Google", period: "Three Months", frequency: 32.7 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "Walmart Labs", period: "Six Months", frequency: 70.5 } + - { name: "IBM", period: "Six Months", frequency: 70.1 } + - { name: "LinkedIn", period: "Six Months", frequency: 63.3 } + - { name: "Flipkart", period: "Six Months", frequency: 57.1 } + - { name: "TikTok", period: "Six Months", frequency: 55.2 } + - { name: "Microsoft", period: "Six Months", frequency: 37.9 } sidebar: label: 'Kth Largest Element in an Array' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/heap-priority-queue/23_merge-k-sorted-lists.mdx b/apps/docs/content/(03-hierarchical)/heap-priority-queue/23_merge-k-sorted-lists.mdx index 8cbeb85..5b7c852 100644 --- a/apps/docs/content/(03-hierarchical)/heap-priority-queue/23_merge-k-sorted-lists.mdx +++ b/apps/docs/content/(03-hierarchical)/heap-priority-queue/23_merge-k-sorted-lists.mdx @@ -10,6 +10,18 @@ topics: - { name: "Tournament Sort", slug: "tournament-sort" } video: "q5a5OiGbT6Q" issue: "https://github.com/prdlk/leetcode/issues/120" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "FreshWorks", period: "Three Months", frequency: 100 } + - { name: "Snap", period: "Three Months", frequency: 100 } + - { name: "Deloitte", period: "Three Months", frequency: 89.1 } + - { name: "Salesforce", period: "Three Months", frequency: 64.7 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "Nvidia", period: "Six Months", frequency: 78.7 } + - { name: "Apple", period: "Six Months", frequency: 57.9 } sidebar: label: 'Merge k Sorted Lists' badge: 'Hard' diff --git a/apps/docs/content/(03-hierarchical)/heap-priority-queue/973_k-closest-points-to-origin.mdx b/apps/docs/content/(03-hierarchical)/heap-priority-queue/973_k-closest-points-to-origin.mdx index 401f18d..1d3836f 100644 --- a/apps/docs/content/(03-hierarchical)/heap-priority-queue/973_k-closest-points-to-origin.mdx +++ b/apps/docs/content/(03-hierarchical)/heap-priority-queue/973_k-closest-points-to-origin.mdx @@ -13,6 +13,10 @@ topics: - { name: "K-D Tree", slug: "k-d-tree" } video: "rI2EBUEMfTk" issue: "https://github.com/prdlk/leetcode/issues/119" +companies: + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "Meta", period: "Six Months", frequency: 47.3 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'K Closest Points to Origin' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/tree-bfs/102_binary-tree-level-order-traversal.mdx b/apps/docs/content/(03-hierarchical)/tree-bfs/102_binary-tree-level-order-traversal.mdx index 283919d..34d5e37 100644 --- a/apps/docs/content/(03-hierarchical)/tree-bfs/102_binary-tree-level-order-traversal.mdx +++ b/apps/docs/content/(03-hierarchical)/tree-bfs/102_binary-tree-level-order-traversal.mdx @@ -8,6 +8,12 @@ topics: - { name: "Binary Tree", slug: "binary-tree" } video: "6ZnyEApgFYg" issue: "https://github.com/prdlk/leetcode/issues/106" +companies: + - { name: "Google", period: "Three Months", frequency: 41 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'Binary Tree Level Order Traversal' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/tree-bfs/1448_count-good-nodes-in-binary-tree.mdx b/apps/docs/content/(03-hierarchical)/tree-bfs/1448_count-good-nodes-in-binary-tree.mdx index e1ca428..eb509c4 100644 --- a/apps/docs/content/(03-hierarchical)/tree-bfs/1448_count-good-nodes-in-binary-tree.mdx +++ b/apps/docs/content/(03-hierarchical)/tree-bfs/1448_count-good-nodes-in-binary-tree.mdx @@ -9,6 +9,9 @@ topics: - { name: "Binary Tree", slug: "binary-tree" } video: "7cp5imvDzl4" issue: "https://github.com/prdlk/leetcode/issues/108" +companies: + - { name: "josh technology", period: "Six Months", frequency: 74 } + - { name: "Google", period: "Six Months", frequency: 11.8 } sidebar: label: 'Count Good Nodes in Binary Tree' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/tree-bfs/199_binary-tree-right-side-view.mdx b/apps/docs/content/(03-hierarchical)/tree-bfs/199_binary-tree-right-side-view.mdx index f71c9aa..da9e7e2 100644 --- a/apps/docs/content/(03-hierarchical)/tree-bfs/199_binary-tree-right-side-view.mdx +++ b/apps/docs/content/(03-hierarchical)/tree-bfs/199_binary-tree-right-side-view.mdx @@ -9,6 +9,13 @@ topics: - { name: "Binary Tree", slug: "binary-tree" } video: "d4zLyf32e3I" issue: "https://github.com/prdlk/leetcode/issues/107" +companies: + - { name: "Yandex", period: "Three Months", frequency: 76.1 } + - { name: "Amazon", period: "Three Months", frequency: 42.8 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "Oracle", period: "Six Months", frequency: 78.7 } + - { name: "Meta", period: "Six Months", frequency: 62.3 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } sidebar: label: 'Binary Tree Right Side View' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/tree-dfs/104_maximum-depth-of-binary-tree.mdx b/apps/docs/content/(03-hierarchical)/tree-dfs/104_maximum-depth-of-binary-tree.mdx index 44086bc..1fb450f 100644 --- a/apps/docs/content/(03-hierarchical)/tree-dfs/104_maximum-depth-of-binary-tree.mdx +++ b/apps/docs/content/(03-hierarchical)/tree-dfs/104_maximum-depth-of-binary-tree.mdx @@ -9,6 +9,14 @@ topics: - { name: "Binary Tree", slug: "binary-tree" } video: "hTM3phVI6YQ" issue: "https://github.com/prdlk/leetcode/issues/97" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Google", period: "Thirty Days", frequency: 42.3 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Amazon", period: "Three Months", frequency: 21.2 } + - { name: "LinkedIn", period: "Six Months", frequency: 54.1 } + - { name: "Meta", period: "Six Months", frequency: 32.7 } sidebar: label: 'Maximum Depth of Binary Tree' badge: 'Easy' diff --git a/apps/docs/content/(03-hierarchical)/tree-dfs/226_invert-binary-tree.mdx b/apps/docs/content/(03-hierarchical)/tree-dfs/226_invert-binary-tree.mdx index 9ba052b..f0705f6 100644 --- a/apps/docs/content/(03-hierarchical)/tree-dfs/226_invert-binary-tree.mdx +++ b/apps/docs/content/(03-hierarchical)/tree-dfs/226_invert-binary-tree.mdx @@ -9,6 +9,10 @@ topics: - { name: "Binary Tree", slug: "binary-tree" } video: "OnSn2XEQ4MY" issue: "https://github.com/prdlk/leetcode/issues/96" +companies: + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Meta", period: "Six Months", frequency: 32.7 } sidebar: label: 'Invert Binary Tree' badge: 'Easy' diff --git a/apps/docs/content/(03-hierarchical)/tree-dfs/236_lowest-common-ancestor-of-a-binary-tree.mdx b/apps/docs/content/(03-hierarchical)/tree-dfs/236_lowest-common-ancestor-of-a-binary-tree.mdx index c160b8b..3b457c9 100644 --- a/apps/docs/content/(03-hierarchical)/tree-dfs/236_lowest-common-ancestor-of-a-binary-tree.mdx +++ b/apps/docs/content/(03-hierarchical)/tree-dfs/236_lowest-common-ancestor-of-a-binary-tree.mdx @@ -9,6 +9,12 @@ topics: - { name: "Binary Lifting", slug: "binary-lifting" } - { name: "Lowest Common Ancestor", slug: "lowest-common-ancestor" } issue: "https://github.com/prdlk/leetcode/issues/98" +companies: + - { name: "BlackRock", period: "Thirty Days", frequency: 76.6 } + - { name: "Amazon", period: "Thirty Days", frequency: 55.9 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Meta", period: "Six Months", frequency: 56.1 } sidebar: label: 'Lowest Common Ancestor of a Binary Tree' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/trie/208_implement-trie-prefix-tree.mdx b/apps/docs/content/(03-hierarchical)/trie/208_implement-trie-prefix-tree.mdx index 015aa09..2aed07c 100644 --- a/apps/docs/content/(03-hierarchical)/trie/208_implement-trie-prefix-tree.mdx +++ b/apps/docs/content/(03-hierarchical)/trie/208_implement-trie-prefix-tree.mdx @@ -9,6 +9,12 @@ topics: - { name: "Trie", slug: "trie" } video: "oobqoCJlHA0" issue: "https://github.com/prdlk/leetcode/issues/127" +companies: + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Apple", period: "Six Months", frequency: 48.1 } + - { name: "Microsoft", period: "Six Months", frequency: 37.9 } + - { name: "Bloomberg", period: "Six Months", frequency: 34.2 } sidebar: label: 'Implement Trie (Prefix Tree)' badge: 'Medium' diff --git a/apps/docs/content/(03-hierarchical)/trie/211_design-add-and-search-words-data-structure.mdx b/apps/docs/content/(03-hierarchical)/trie/211_design-add-and-search-words-data-structure.mdx index ab5cb0a..09accf9 100644 --- a/apps/docs/content/(03-hierarchical)/trie/211_design-add-and-search-words-data-structure.mdx +++ b/apps/docs/content/(03-hierarchical)/trie/211_design-add-and-search-words-data-structure.mdx @@ -9,6 +9,9 @@ topics: - { name: "Trie", slug: "trie" } video: "BTf05gs_8iU" issue: "https://github.com/prdlk/leetcode/issues/128" +companies: + - { name: "Amazon", period: "Three Months", frequency: 21.2 } + - { name: "Snowflake", period: "Six Months", frequency: 58.7 } sidebar: label: 'Design Add and Search Words Data Structure' badge: 'Medium' diff --git a/apps/docs/content/(04-relational)/graph-bfs/127_word-ladder.mdx b/apps/docs/content/(04-relational)/graph-bfs/127_word-ladder.mdx index b0ee12e..1012041 100644 --- a/apps/docs/content/(04-relational)/graph-bfs/127_word-ladder.mdx +++ b/apps/docs/content/(04-relational)/graph-bfs/127_word-ladder.mdx @@ -8,6 +8,15 @@ topics: - { name: "Breadth-First Search", slug: "breadth-first-search" } - { name: "Bidirectional Search", slug: "bidirectional-search" } issue: "https://github.com/prdlk/leetcode/issues/138" +companies: + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Amazon", period: "Thirty Days", frequency: 55.9 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Apple", period: "Three Months", frequency: 69 } + - { name: "Bloomberg", period: "Three Months", frequency: 46.8 } + - { name: "Citadel", period: "Six Months", frequency: 88 } + - { name: "LinkedIn", period: "Six Months", frequency: 69.8 } + - { name: "Meta", period: "Six Months", frequency: 32.7 } sidebar: label: 'Word Ladder' badge: 'Hard' diff --git a/apps/docs/content/(04-relational)/graph-bfs/994_rotting-oranges.mdx b/apps/docs/content/(04-relational)/graph-bfs/994_rotting-oranges.mdx index d6ac80a..fc8b8aa 100644 --- a/apps/docs/content/(04-relational)/graph-bfs/994_rotting-oranges.mdx +++ b/apps/docs/content/(04-relational)/graph-bfs/994_rotting-oranges.mdx @@ -7,6 +7,22 @@ topics: - { name: "Breadth-First Search", slug: "breadth-first-search" } - { name: "Matrix", slug: "matrix" } issue: "https://github.com/prdlk/leetcode/issues/137" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 75.8 } + - { name: "OpenAI", period: "Thirty Days", frequency: 69.7 } + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "Google", period: "Thirty Days", frequency: 42.3 } + - { name: "Anduril", period: "Three Months", frequency: 94.2 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "Cognizant", period: "Six Months", frequency: 76.3 } + - { name: "Lyft", period: "Six Months", frequency: 72.2 } + - { name: "Flipkart", period: "Six Months", frequency: 57.1 } + - { name: "Pinterest", period: "Six Months", frequency: 55.8 } + - { name: "LinkedIn", period: "Six Months", frequency: 54.1 } + - { name: "Salesforce", period: "Six Months", frequency: 50.2 } + - { name: "Uber", period: "Six Months", frequency: 45.7 } sidebar: label: 'Rotting Oranges' badge: 'Medium' diff --git a/apps/docs/content/(04-relational)/graph-dfs/133_clone-graph.mdx b/apps/docs/content/(04-relational)/graph-dfs/133_clone-graph.mdx index b02427a..b957af3 100644 --- a/apps/docs/content/(04-relational)/graph-dfs/133_clone-graph.mdx +++ b/apps/docs/content/(04-relational)/graph-dfs/133_clone-graph.mdx @@ -8,6 +8,10 @@ topics: - { name: "Breadth-First Search", slug: "breadth-first-search" } - { name: "Graph Theory", slug: "graph" } issue: "https://github.com/prdlk/leetcode/issues/131" +companies: + - { name: "Amazon", period: "Three Months", frequency: 21.2 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Meta", period: "Six Months", frequency: 24.5 } sidebar: label: 'Clone Graph' badge: 'Medium' diff --git a/apps/docs/content/(04-relational)/graph-dfs/200_number-of-islands.mdx b/apps/docs/content/(04-relational)/graph-dfs/200_number-of-islands.mdx index 6d3c78e..3640d0a 100644 --- a/apps/docs/content/(04-relational)/graph-dfs/200_number-of-islands.mdx +++ b/apps/docs/content/(04-relational)/graph-dfs/200_number-of-islands.mdx @@ -9,6 +9,32 @@ topics: - { name: "Union-Find", slug: "union-find" } - { name: "Matrix", slug: "matrix" } issue: "https://github.com/prdlk/leetcode/issues/130" +companies: + - { name: "Anduril", period: "Thirty Days", frequency: 100 } + - { name: "Apple", period: "Thirty Days", frequency: 81.7 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 65.8 } + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "Qualcomm", period: "Three Months", frequency: 100 } + - { name: "TikTok", period: "Three Months", frequency: 89.3 } + - { name: "Uber", period: "Three Months", frequency: 72.9 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "Microsoft", period: "Three Months", frequency: 57.2 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Autodesk", period: "Six Months", frequency: 100 } + - { name: "ByteDance", period: "Six Months", frequency: 100 } + - { name: "Rivian", period: "Six Months", frequency: 100 } + - { name: "Snap", period: "Six Months", frequency: 100 } + - { name: "Waymo", period: "Six Months", frequency: 100 } + - { name: "Walmart Labs", period: "Six Months", frequency: 95.1 } + - { name: "Visa", period: "Six Months", frequency: 80.9 } + - { name: "Nvidia", period: "Six Months", frequency: 78.7 } + - { name: "Oracle", period: "Six Months", frequency: 78.7 } + - { name: "LinkedIn", period: "Six Months", frequency: 69.8 } + - { name: "Yandex", period: "Six Months", frequency: 59.6 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 59 } sidebar: label: 'Number of Islands' badge: 'Medium' diff --git a/apps/docs/content/(04-relational)/graph-dfs/417_pacific-atlantic-water-flow.mdx b/apps/docs/content/(04-relational)/graph-dfs/417_pacific-atlantic-water-flow.mdx index 3c28408..419adc6 100644 --- a/apps/docs/content/(04-relational)/graph-dfs/417_pacific-atlantic-water-flow.mdx +++ b/apps/docs/content/(04-relational)/graph-dfs/417_pacific-atlantic-water-flow.mdx @@ -8,6 +8,10 @@ topics: - { name: "Breadth-First Search", slug: "breadth-first-search" } - { name: "Matrix", slug: "matrix" } issue: "https://github.com/prdlk/leetcode/issues/132" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Pacific Atlantic Water Flow' badge: 'Medium' diff --git a/apps/docs/content/(04-relational)/topological-sort/207_course-schedule.mdx b/apps/docs/content/(04-relational)/topological-sort/207_course-schedule.mdx index b122cb2..52c46e3 100644 --- a/apps/docs/content/(04-relational)/topological-sort/207_course-schedule.mdx +++ b/apps/docs/content/(04-relational)/topological-sort/207_course-schedule.mdx @@ -9,6 +9,19 @@ topics: - { name: "Topological Sort", slug: "topological-sort" } - { name: "Directed Acyclic Graph", slug: "directed-acyclic-graph" } issue: "https://github.com/prdlk/leetcode/issues/142" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 69.6 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "TikTok", period: "Three Months", frequency: 70.9 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "ByteDance", period: "Six Months", frequency: 88.6 } + - { name: "Walmart Labs", period: "Six Months", frequency: 70.5 } + - { name: "Anduril", period: "Six Months", frequency: 65.4 } + - { name: "Snowflake", period: "Six Months", frequency: 58.7 } + - { name: "Apple", period: "Six Months", frequency: 57.9 } + - { name: "Infosys", period: "Six Months", frequency: 56.2 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 44.8 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } sidebar: label: 'Course Schedule' badge: 'Medium' diff --git a/apps/docs/content/(04-relational)/topological-sort/210_course-schedule-ii.mdx b/apps/docs/content/(04-relational)/topological-sort/210_course-schedule-ii.mdx index 21d2900..b891f31 100644 --- a/apps/docs/content/(04-relational)/topological-sort/210_course-schedule-ii.mdx +++ b/apps/docs/content/(04-relational)/topological-sort/210_course-schedule-ii.mdx @@ -8,6 +8,21 @@ topics: - { name: "Graph Theory", slug: "graph" } - { name: "Topological Sort", slug: "topological-sort" } issue: "https://github.com/prdlk/leetcode/issues/143" +companies: + - { name: "Salesforce", period: "Thirty Days", frequency: 100 } + - { name: "Walmart Labs", period: "Thirty Days", frequency: 100 } + - { name: "Apple", period: "Three Months", frequency: 80.4 } + - { name: "Amazon", period: "Three Months", frequency: 39.1 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "Audible", period: "Six Months", frequency: 100 } + - { name: "Aurora", period: "Six Months", frequency: 100 } + - { name: "Anduril", period: "Six Months", frequency: 92.8 } + - { name: "Netflix", period: "Six Months", frequency: 90.1 } + - { name: "DoorDash", period: "Six Months", frequency: 89.7 } + - { name: "Snowflake", period: "Six Months", frequency: 79.8 } + - { name: "Uber", period: "Six Months", frequency: 55.2 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } sidebar: label: 'Course Schedule II' badge: 'Medium' diff --git a/apps/docs/content/(04-relational)/union-find/684_redundant-connection.mdx b/apps/docs/content/(04-relational)/union-find/684_redundant-connection.mdx index 18a44f8..46d429b 100644 --- a/apps/docs/content/(04-relational)/union-find/684_redundant-connection.mdx +++ b/apps/docs/content/(04-relational)/union-find/684_redundant-connection.mdx @@ -8,6 +8,11 @@ topics: - { name: "Union-Find", slug: "union-find" } - { name: "Graph Theory", slug: "graph" } issue: "https://github.com/prdlk/leetcode/issues/146" +companies: + - { name: "Box", period: "Three Months", frequency: 100 } + - { name: "Amazon", period: "Three Months", frequency: 21.2 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Redundant Connection' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/1d-dynamic-programming/198_house-robber.mdx b/apps/docs/content/(05-decision-space)/1d-dynamic-programming/198_house-robber.mdx index 26564e0..50ff4ca 100644 --- a/apps/docs/content/(05-decision-space)/1d-dynamic-programming/198_house-robber.mdx +++ b/apps/docs/content/(05-decision-space)/1d-dynamic-programming/198_house-robber.mdx @@ -6,6 +6,17 @@ topics: - { name: "Array", slug: "array" } - { name: "Dynamic Programming", slug: "dynamic-programming" } issue: "https://github.com/prdlk/leetcode/issues/158" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Infosys", period: "Thirty Days", frequency: 68.6 } + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Google", period: "Thirty Days", frequency: 50.2 } + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Microsoft", period: "Three Months", frequency: 53.2 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Freecharge", period: "Six Months", frequency: 100 } + - { name: "Agoda", period: "Six Months", frequency: 65 } sidebar: label: 'House Robber' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/1d-dynamic-programming/322_coin-change.mdx b/apps/docs/content/(05-decision-space)/1d-dynamic-programming/322_coin-change.mdx index ccd7358..19acffb 100644 --- a/apps/docs/content/(05-decision-space)/1d-dynamic-programming/322_coin-change.mdx +++ b/apps/docs/content/(05-decision-space)/1d-dynamic-programming/322_coin-change.mdx @@ -9,6 +9,15 @@ topics: - { name: "Knapsack Problem", slug: "knapsack-problem" } - { name: "Complete Knapsack", slug: "complete-knapsack" } issue: "https://github.com/prdlk/leetcode/issues/159" +companies: + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Bloomberg", period: "Three Months", frequency: 59.7 } + - { name: "Amazon", period: "Three Months", frequency: 48.7 } + - { name: "Intuit", period: "Six Months", frequency: 71.5 } + - { name: "Infosys", period: "Six Months", frequency: 67.9 } + - { name: "Pinterest", period: "Six Months", frequency: 64.4 } sidebar: label: 'Coin Change' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/1d-dynamic-programming/70_climbing-stairs.mdx b/apps/docs/content/(05-decision-space)/1d-dynamic-programming/70_climbing-stairs.mdx index a81d727..7f3692c 100644 --- a/apps/docs/content/(05-decision-space)/1d-dynamic-programming/70_climbing-stairs.mdx +++ b/apps/docs/content/(05-decision-space)/1d-dynamic-programming/70_climbing-stairs.mdx @@ -7,6 +7,17 @@ topics: - { name: "Dynamic Programming", slug: "dynamic-programming" } - { name: "Memoization", slug: "memoization" } issue: "https://github.com/prdlk/leetcode/issues/157" +companies: + - { name: "Infosys", period: "Thirty Days", frequency: 80.2 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Intuit", period: "Thirty Days", frequency: 66.1 } + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "Deloitte", period: "Six Months", frequency: 81 } sidebar: label: 'Climbing Stairs' badge: 'Easy' diff --git a/apps/docs/content/(05-decision-space)/backtracking/39_combination-sum.mdx b/apps/docs/content/(05-decision-space)/backtracking/39_combination-sum.mdx index cfbe231..2d6201f 100644 --- a/apps/docs/content/(05-decision-space)/backtracking/39_combination-sum.mdx +++ b/apps/docs/content/(05-decision-space)/backtracking/39_combination-sum.mdx @@ -6,6 +6,12 @@ topics: - { name: "Array", slug: "array" } - { name: "Backtracking", slug: "backtracking" } issue: "https://github.com/prdlk/leetcode/issues/150" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Google", period: "Three Months", frequency: 41 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Amazon", period: "Six Months", frequency: 30.1 } sidebar: label: 'Combination Sum' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/backtracking/46_permutations.mdx b/apps/docs/content/(05-decision-space)/backtracking/46_permutations.mdx index abaad93..348a1d6 100644 --- a/apps/docs/content/(05-decision-space)/backtracking/46_permutations.mdx +++ b/apps/docs/content/(05-decision-space)/backtracking/46_permutations.mdx @@ -6,6 +6,14 @@ topics: - { name: "Array", slug: "array" } - { name: "Backtracking", slug: "backtracking" } issue: "https://github.com/prdlk/leetcode/issues/151" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Microsoft", period: "Three Months", frequency: 42.1 } + - { name: "Google", period: "Three Months", frequency: 32.7 } + - { name: "Infosys", period: "Six Months", frequency: 67.9 } + - { name: "LinkedIn", period: "Six Months", frequency: 54.1 } + - { name: "Meta", period: "Six Months", frequency: 43.4 } sidebar: label: 'Permutations' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/backtracking/78_subsets.mdx b/apps/docs/content/(05-decision-space)/backtracking/78_subsets.mdx index 4527e92..c6b0f11 100644 --- a/apps/docs/content/(05-decision-space)/backtracking/78_subsets.mdx +++ b/apps/docs/content/(05-decision-space)/backtracking/78_subsets.mdx @@ -7,6 +7,14 @@ topics: - { name: "Backtracking", slug: "backtracking" } - { name: "Bit Manipulation", slug: "bit-manipulation" } issue: "https://github.com/prdlk/leetcode/issues/149" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Amazon", period: "Thirty Days", frequency: 61.3 } + - { name: "Agoda", period: "Three Months", frequency: 75.3 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "Meta", period: "Three Months", frequency: 43.3 } + - { name: "Google", period: "Three Months", frequency: 23.9 } + - { name: "TikTok", period: "Six Months", frequency: 64.9 } sidebar: label: 'Subsets' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/greedy/134_gas-station.mdx b/apps/docs/content/(05-decision-space)/greedy/134_gas-station.mdx index 4901b13..03fad14 100644 --- a/apps/docs/content/(05-decision-space)/greedy/134_gas-station.mdx +++ b/apps/docs/content/(05-decision-space)/greedy/134_gas-station.mdx @@ -6,6 +6,15 @@ topics: - { name: "Array", slug: "array" } - { name: "Greedy", slug: "greedy" } issue: "https://github.com/prdlk/leetcode/issues/176" +companies: + - { name: "Bloomberg", period: "Thirty Days", frequency: 69.8 } + - { name: "Sprinklr", period: "Three Months", frequency: 95.9 } + - { name: "TikTok", period: "Three Months", frequency: 70.9 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "Adobe", period: "Six Months", frequency: 74.3 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 44.8 } + - { name: "Google", period: "Six Months", frequency: 17.4 } sidebar: label: 'Gas Station' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/greedy/53_maximum-subarray.mdx b/apps/docs/content/(05-decision-space)/greedy/53_maximum-subarray.mdx index e5c73b2..97c99c3 100644 --- a/apps/docs/content/(05-decision-space)/greedy/53_maximum-subarray.mdx +++ b/apps/docs/content/(05-decision-space)/greedy/53_maximum-subarray.mdx @@ -7,6 +7,16 @@ topics: - { name: "Divide and Conquer", slug: "divide-and-conquer" } - { name: "Dynamic Programming", slug: "dynamic-programming" } issue: "https://github.com/prdlk/leetcode/issues/174" +companies: + - { name: "Upstart", period: "Thirty Days", frequency: 100 } + - { name: "Infosys", period: "Thirty Days", frequency: 80.2 } + - { name: "Microsoft", period: "Thirty Days", frequency: 75.6 } + - { name: "Amazon", period: "Thirty Days", frequency: 69.6 } + - { name: "Meta", period: "Three Months", frequency: 65.3 } + - { name: "Google", period: "Three Months", frequency: 54.6 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "tcs", period: "Three Months", frequency: 47.7 } + - { name: "LinkedIn", period: "Six Months", frequency: 85.6 } sidebar: label: 'Maximum Subarray' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/greedy/55_jump-game.mdx b/apps/docs/content/(05-decision-space)/greedy/55_jump-game.mdx index 5540d4b..2d42f80 100644 --- a/apps/docs/content/(05-decision-space)/greedy/55_jump-game.mdx +++ b/apps/docs/content/(05-decision-space)/greedy/55_jump-game.mdx @@ -7,6 +7,13 @@ topics: - { name: "Dynamic Programming", slug: "dynamic-programming" } - { name: "Greedy", slug: "greedy" } issue: "https://github.com/prdlk/leetcode/issues/175" +companies: + - { name: "Amazon", period: "Thirty Days", frequency: 39.1 } + - { name: "Meta", period: "Three Months", frequency: 54.8 } + - { name: "Bloomberg", period: "Three Months", frequency: 54 } + - { name: "Google", period: "Three Months", frequency: 45 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Infosys", period: "Six Months", frequency: 56.2 } sidebar: label: 'Jump Game' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/intervals/435_non-overlapping-intervals.mdx b/apps/docs/content/(05-decision-space)/intervals/435_non-overlapping-intervals.mdx index 37fa35b..00cd5ea 100644 --- a/apps/docs/content/(05-decision-space)/intervals/435_non-overlapping-intervals.mdx +++ b/apps/docs/content/(05-decision-space)/intervals/435_non-overlapping-intervals.mdx @@ -8,6 +8,13 @@ topics: - { name: "Greedy", slug: "greedy" } - { name: "Sorting", slug: "sorting" } issue: "https://github.com/prdlk/leetcode/issues/183" +companies: + - { name: "Microsoft", period: "Thirty Days", frequency: 57.2 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Grammarly", period: "Three Months", frequency: 100 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "IBM", period: "Six Months", frequency: 60.1 } + - { name: "Bloomberg", period: "Six Months", frequency: 25.5 } sidebar: label: 'Non-overlapping Intervals' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/intervals/56_merge-intervals.mdx b/apps/docs/content/(05-decision-space)/intervals/56_merge-intervals.mdx index 04ddab1..cde3670 100644 --- a/apps/docs/content/(05-decision-space)/intervals/56_merge-intervals.mdx +++ b/apps/docs/content/(05-decision-space)/intervals/56_merge-intervals.mdx @@ -7,6 +7,39 @@ topics: - { name: "Sorting", slug: "sorting" } - { name: "Quicksort", slug: "quicksort" } issue: "https://github.com/prdlk/leetcode/issues/182" +companies: + - { name: "Palo Alto Networks", period: "Thirty Days", frequency: 100 } + - { name: "Bloomberg", period: "Thirty Days", frequency: 83.1 } + - { name: "Amazon", period: "Thirty Days", frequency: 75.8 } + - { name: "Infosys", period: "Thirty Days", frequency: 68.6 } + - { name: "Microsoft", period: "Thirty Days", frequency: 67.9 } + - { name: "Meta", period: "Thirty Days", frequency: 53.8 } + - { name: "Google", period: "Thirty Days", frequency: 36.7 } + - { name: "Apple", period: "Three Months", frequency: 100 } + - { name: "Coupang", period: "Three Months", frequency: 100 } + - { name: "IBM", period: "Three Months", frequency: 100 } + - { name: "MongoDB", period: "Three Months", frequency: 100 } + - { name: "Atlassian", period: "Three Months", frequency: 89.6 } + - { name: "Salesforce", period: "Three Months", frequency: 88 } + - { name: "Yandex", period: "Three Months", frequency: 86.7 } + - { name: "Visa", period: "Three Months", frequency: 80.9 } + - { name: "Goldman Sachs", period: "Three Months", frequency: 57 } + - { name: "American Express", period: "Six Months", frequency: 100 } + - { name: "Expedia", period: "Six Months", frequency: 100 } + - { name: "General Motors", period: "Six Months", frequency: 100 } + - { name: "Nextdoor", period: "Six Months", frequency: 100 } + - { name: "Ozon", period: "Six Months", frequency: 100 } + - { name: "Ripple", period: "Six Months", frequency: 100 } + - { name: "Tesco", period: "Six Months", frequency: 100 } + - { name: "Morgan Stanley", period: "Six Months", frequency: 83.1 } + - { name: "Walmart Labs", period: "Six Months", frequency: 81.4 } + - { name: "Tesla", period: "Six Months", frequency: 80.9 } + - { name: "Zoho", period: "Six Months", frequency: 79.6 } + - { name: "eBay", period: "Six Months", frequency: 75.2 } + - { name: "TikTok", period: "Six Months", frequency: 64.9 } + - { name: "Capital One", period: "Six Months", frequency: 64.2 } + - { name: "Uber", period: "Six Months", frequency: 55.2 } + - { name: "LinkedIn", period: "Six Months", frequency: 54.1 } sidebar: label: 'Merge Intervals' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/intervals/57_insert-interval.mdx b/apps/docs/content/(05-decision-space)/intervals/57_insert-interval.mdx index a9bc1c2..b01bd9a 100644 --- a/apps/docs/content/(05-decision-space)/intervals/57_insert-interval.mdx +++ b/apps/docs/content/(05-decision-space)/intervals/57_insert-interval.mdx @@ -5,6 +5,10 @@ icon: dot topics: - { name: "Array", slug: "array" } issue: "https://github.com/prdlk/leetcode/issues/181" +companies: + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Amazon", period: "Three Months", frequency: 39.1 } + - { name: "Microsoft", period: "Six Months", frequency: 24.1 } sidebar: label: 'Insert Interval' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/multi-d-grid-dp/1143_longest-common-subsequence.mdx b/apps/docs/content/(05-decision-space)/multi-d-grid-dp/1143_longest-common-subsequence.mdx index 433fb71..b41f6a3 100644 --- a/apps/docs/content/(05-decision-space)/multi-d-grid-dp/1143_longest-common-subsequence.mdx +++ b/apps/docs/content/(05-decision-space)/multi-d-grid-dp/1143_longest-common-subsequence.mdx @@ -7,6 +7,12 @@ topics: - { name: "Dynamic Programming", slug: "dynamic-programming" } - { name: "Longest Common Subsequence", slug: "longest-common-subsequence" } issue: "https://github.com/prdlk/leetcode/issues/168" +companies: + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Microsoft", period: "Three Months", frequency: 33.4 } + - { name: "Amazon", period: "Three Months", frequency: 28.9 } + - { name: "Meta", period: "Six Months", frequency: 38.7 } sidebar: label: 'Longest Common Subsequence' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/multi-d-grid-dp/62_unique-paths.mdx b/apps/docs/content/(05-decision-space)/multi-d-grid-dp/62_unique-paths.mdx index 1e460a9..6d75a12 100644 --- a/apps/docs/content/(05-decision-space)/multi-d-grid-dp/62_unique-paths.mdx +++ b/apps/docs/content/(05-decision-space)/multi-d-grid-dp/62_unique-paths.mdx @@ -7,6 +7,14 @@ topics: - { name: "Dynamic Programming", slug: "dynamic-programming" } - { name: "Combinatorics", slug: "combinatorics" } issue: "https://github.com/prdlk/leetcode/issues/166" +companies: + - { name: "Ola Cabs", period: "Thirty Days", frequency: 65.6 } + - { name: "Amazon", period: "Thirty Days", frequency: 48.9 } + - { name: "Google", period: "Thirty Days", frequency: 29 } + - { name: "Microsoft", period: "Three Months", frequency: 48.3 } + - { name: "Bloomberg", period: "Three Months", frequency: 36.8 } + - { name: "Meta", period: "Three Months", frequency: 34.5 } + - { name: "Goldman Sachs", period: "Six Months", frequency: 44.8 } sidebar: label: 'Unique Paths' badge: 'Medium' diff --git a/apps/docs/content/(05-decision-space)/multi-d-grid-dp/64_minimum-path-sum.mdx b/apps/docs/content/(05-decision-space)/multi-d-grid-dp/64_minimum-path-sum.mdx index 32e455a..044040b 100644 --- a/apps/docs/content/(05-decision-space)/multi-d-grid-dp/64_minimum-path-sum.mdx +++ b/apps/docs/content/(05-decision-space)/multi-d-grid-dp/64_minimum-path-sum.mdx @@ -7,6 +7,12 @@ topics: - { name: "Dynamic Programming", slug: "dynamic-programming" } - { name: "Matrix", slug: "matrix" } issue: "https://github.com/prdlk/leetcode/issues/167" +companies: + - { name: "Goldman Sachs", period: "Three Months", frequency: 66.3 } + - { name: "Infosys", period: "Three Months", frequency: 66 } + - { name: "Amazon", period: "Three Months", frequency: 21.2 } + - { name: "Google", period: "Three Months", frequency: 17.3 } + - { name: "Microsoft", period: "Six Months", frequency: 32 } sidebar: label: 'Minimum Path Sum' badge: 'Medium' diff --git a/apps/docs/pages/appendix.astro b/apps/docs/pages/appendix.astro index 1727380..cd6f88d 100644 --- a/apps/docs/pages/appendix.astro +++ b/apps/docs/pages/appendix.astro @@ -7,8 +7,12 @@ * shows (the term's icon in the tag's colour from `lib/tag-colors.ts`, over * the same tag universe `ProblemBadges.astro` colours) and lists the problem * pages whose badge links here: the backlinks a per-term page used to have. - * The filter is a custom element over static markup, the way the Carousel - * is built; with no JS the page is the full glossary. + * After the terms, a Companies section: one card per company any problem + * page's `companies:` names (`companies.ts`), the target of that company's + * pill in the page's company table, listing the solved problems it asked in + * the last six months and how recently. The filter is a custom element over + * static markup, the way the Carousel is built; with no JS the page is the + * full glossary. */ import { getEntry } from "astro:content"; import data from "blume:data"; @@ -16,6 +20,7 @@ import Icon from "blume/components/Icon.astro"; import { withBase } from "blume/components/islands/base-path.ts"; import PageLayout from "blume/components/layout/PageLayout.astro"; import { APPENDIX } from "../appendix.ts"; +import { RECENCY, RECENCY_LABEL, companyHref, type Company } from "../companies.ts"; import { tagColors } from "../lib/tag-colors.ts"; import { TOPIC_LANDINGS, tagTarget, type TopicTag } from "../topic-landings.ts"; @@ -35,6 +40,7 @@ const problems = await Promise.all( name: name!, difficulty: entry?.data.sidebar?.badge as string | undefined, tags: (entry?.data.topics ?? []) as TopicTag[], + companies: (entry?.data.companies ?? []) as Company[], }; }), ); @@ -55,6 +61,21 @@ const terms = Object.entries(APPENDIX) })) .sort((a, b) => a.name.localeCompare(b.name)); +// Every company a problem page names, A–Z; its solved problems most recent +// window first, then by number. +const companies = [ + ...Map.groupBy( + problems.flatMap((p) => p.companies.map((c) => ({ ...p, company: c.name, period: c.period }))), + (row) => row.company, + ), +] + .map(([name, rows]) => ({ + name, + id: companyHref(name).slice("/appendix#".length), + problems: rows.sort((a, b) => RECENCY.indexOf(a.period) - RECENCY.indexOf(b.period) || a.num - b.num), + })) + .sort((a, b) => a.name.localeCompare(b.name)); + const sections = new Map(); for (const term of terms) { const letter = term.name[0]!.toUpperCase(); @@ -73,7 +94,7 @@ const DIFFICULTY: Record = { Hard: { label: "Hard", class: "border-chart-3/40 bg-chart-3/10 text-chart-3" }, }; const description = - "The LeetCode topics the campaign meets without teaching them as a topic: what each one means, and the solved problems that use it."; + "The LeetCode topics the campaign meets without teaching them as a topic, what each one means and the solved problems that use it, then the companies that asked those problems in the last six months."; --- 0 && ( + + Companies + + ) + } @@ -231,7 +263,85 @@ const description = )) } - + { + companies.length > 0 && ( +
+

Companies

+
+ {companies.map((company) => ( + + ))} +
+
+ ) + } +