推荐

Blind 75

数据结构和算法面试中最重要的75个问题。
在浏览器中编码
JS/TS 的官方解决方案
测试用例
开始学习
追踪您的进度
对于数据结构和算法 (DSA) 问题,我们建议您通读盲 75,这是一个简洁的列表,可以有效地帮助您准备这些主题。许多候选人使用此列表作为指南,专注于每个问题以掌握核心概念和技术。我们已使用 JavaScript/TypeScript 解决这些问题,以便前端工程师可以访问它们。

所有练习题目

题目列表

  • Balanced BracketsImplement a function to determine if a string contains balanced brackets
    语言
  • Find Duplicates in ArrayImplement a function to check if there are any duplicate numbers in the array
    语言
  • Find Missing Number in SequenceImplement a function to find the missing element in a sorted array
    语言
  • Maximum Product in Contiguous ArrayImplement a function to find the subarray which has the largest product
    语言
  • Maximum Sum in Contiguous ArrayImplement a function to find the subarray with the maximum sum
    语言
  • Most Common ElementsImplement a function to determine the most common elements in an integer array
    语言
  • Array Product Excluding CurrentImplement a function to find the product of elements in an array excluding the current element
    语言
  • End of Array ReachableImplement a function to determine if the end of the array is reachable
    语言
  • Find Element in Rotated ArrayImplement a function to find an integer in a rotated sorted array
    语言
  • Smallest element in rotated sorted arrayImplement a function to find the smallest element in rotated sorted array
    语言
  • Binary Search Tree Kth Smallest ElementImplement a function to find the kth smallest node in a BST
    语言
  • Binary Search Tree Lowest Common AncestorImplement a function to find the LCA in a binary search tree
    语言
  • Validate Binary Search TreeImplement a function to validate whether a binary tree is a valid binary search tree
    语言
  • Binary Tree EqualImplement a function to determine whether two binary trees are equal
    语言
  • Flip Binary TreeImplement a function to flip the nodes in a binary tree
    语言
  • Binary Tree Level Order TraversalImplement a function to find the level order traversal of a binary tree
    语言
  • Binary Tree Maximum DepthImplement a function to find the maximum depth of a binary tree
    语言
  • Binary Tree Maximum Total PathImplement a function to find the maximum total of nodes in a binary tree path
    语言
  • Binary Tree Rebuilding from Preorder and Inorder TraversalsImplement a function to construct a binary tree from preorder and inorder traversals
    语言
  • Binary Tree Serialization and DeserializationImplement a function to serialize and deserialize a binary tree
    语言
  • Binary Tree SubtreeImplement a function to check if a binary tree is a subtree of another binary tree
    语言
  • Bit CountingImplement a function to find number of set bits from 0 to n
    语言
  • Bit ReversalImplement a function to flip the order of the bits in a given number
    语言
  • Minimum Coins for ChangeImplement a function to return minimum coins needed to make the given amount
    语言
  • Combinations for Target SumImplement a function to count combinations that sum to the target
    语言
  • Count Set Bits in a Binary NumberImplement a function to find set bits in binary representation of a given integer
    语言
  • Course DependencyImplement a function to check if all courses can be completed given prerequisites
    语言
  • Disjoint IntervalsImplement a function to determine the minimum amount of removals to get non-overlapping intervals
    语言
  • Extraterrestrial LanguageImplement a function to verify and return an extraterrestrial language's alphabet order
    语言
  • Graph CloneImplement a function to deeply clone a connected and undirected graph
    语言
  • Graph Count Connected ComponentsImplement a function to count connected components in a graph
    语言
  • Is the Graph a TreeImplement a function to determine if a graph is a valid tree
    语言
  • Count Islands in a GridImplement a function to count distinct islands in a 2D binary grid
    语言
  • Distinct Paths in GridImplement a function to calculate distinct paths for a robot moving on an m x n grid
    语言
  • Find Word in GridImplement a function to check the existence of a word in a grid
    语言
  • Find Words in GridImplement a function to find all the words present in the grid
    语言
  • Merge Overlapping IntervalsImplement a function to merge overlapping intervals
    语言
  • Meeting CalendarImplement a function to check if all meetings can be attended
    语言
  • Merge New IntervalImplement a function to insert a new interval in the given intervals
    语言
  • Minimum Meeting Rooms NeededImplement a function to find the minimum number of required conference rooms
    语言
  • Linked Lists Combine K SortedImplement a function to combine k sorted linked lists
    语言
  • Linked Lists Combine Two SortedImplement a function to combine two sorted linked list
    语言
  • Delete Nth Node from End of Linked ListImplement a function to delete the nth node from the end of a linked list
    语言
  • Linked List Detect CycleImplement a function to detect if there are cycles in a linked list
    语言
  • Rearrange Linked ListImplement a function to rearrange the nodes in a linked list
    语言
  • Linked List ReversalImplement a function to reverse a linked list
    语言
  • Longest Common SubsequenceImplement a function to find the longest common subsequence in two strings
    语言
  • Longest Consecutive Number SequenceImplement a function to find the length of the longest consecutive number sequence
    语言
  • Longest Increasing SubsequenceImplement a function to find the length of the longest increasing subsequence
    语言
  • Longest Non-repeating SubstringImplement a function to find the length of longest substring with unique characters
    语言
  • Find the Longest Palindromic SubstringImplement a function to find the longest palindromic substring
    语言
  • Longest Repeating Substring After ReplacementsImplement a function to find the longest uniform substring after up to k replacements
    语言
  • Matrix RotationImplement a function to rotate the given matrix by 90 degrees
    语言
  • Matrix Spiral TraversalImplement a function to traverse the matrix in spiral order
    语言
  • Matrix ZeroingImplement a function to set matrix rows and columns to zero
    语言
  • Maximum Water Trapped Between WallsImplement a function to find the maximum water volume between two walls in an array of walls
    语言
  • Neighborhood TheftImplement a function to find maximum money to rob without alerting police
    语言
  • Neighborhood Theft (Circular)Implement a function to find maximum money to rob in circular houses without alerting police
    语言
  • Number Stream MedianImplement a function to find the median of a dynamic stream of integers
    语言
  • Ocean FlowImplement a function returning cells with water flow to both oceans
    语言
  • Optimal Stock TradingImplement a function to find the maximum profit achievable by buying and selling a stock once
    语言
  • Pair sumImplement a function to find two numbers within an array of integers that add up to a target integer
    语言
  • Staircase Climbing CombinationsImplement a function to find the number of ways to reach at the top of staircase
    语言
  • String AnagramImplement a function to determine if two strings are anagram of each other
    语言
  • String Anagram GroupsImplement a function to group an array of strings into anagrams
    语言
  • Decode MessageImplement a function to count ways to decode a numeric string
    语言
  • String PalindromeImplement a function to determine if a string is a palindrome
    语言
  • Palindromic SubstringsImplement a function to count all palindromic substrings in a string
    语言
  • Segment WordsImplement a function to check whether a string be formed from dictionary words
    语言
  • Shortest Substring Containing CharactersImplement a function to return the smallest substring of a string containing all characters from another string
    语言
  • Sum Without AdditionImplement a function to find the sum of two integers without using + and - operator
    语言
  • Task CoordinationImplement a function to find minimum intervals for tasks with cooldown
    语言
  • Trie (Prefix Tree)Implement a trie-prefix-tree with insert, search, and starts with functionality
    语言
  • Triplet SumImplement a function to find all unique triplets with distinct indices that sum to 0
    语言
  • Word FinderImplement a data structure where words can be added and support wildcard searching
    语言

Blind 75 - 数据结构与算法面试的 75 个最重要的题目

Blind 75 题单被广泛认为是准备技术面试的最佳资源之一,尤其是在标准的软件工程技术环节中。

  1. 精选: Blind 75 提供精心挑选的 75 道编码问题,这些问题经过精心挑选,涵盖了技术面试中最常见的模式。这确保您将时间花在极有可能出现在面试中的问题上。
  2. 难度均衡: Blind 75 中的问题提供了均衡的难度组合,有助于确保您在建立主题理解和解决问题的技能方面取得平稳的进展。
  3. 涵盖关键主题: 列表中的问题涵盖了广泛的基本主题(例如,数组、链表、树、图)、算法(例如,排序、搜索、动态规划)和系统设计原则。
  4. 效率: 通过缩小到 75 个问题,该列表非常高效。它避免了处理数百个问题的困扰,而是专注于最具影响力的那些问题。
  5. 声誉和认可: Blind 75 在技术社区中获得了很高的声誉,许多候选人和面试官都推荐它作为首选。其有效性得到了无数个人的推荐,他们使用它在顶级科技公司找到了工作。
  6. 与真实面试问题的契合度: Blind 75 列表上的问题通常与主要科技公司在实际面试中提出的问题相似。练习这些问题可以使候选人对预期内容有一个现实的了解,帮助他们在面试中做好更充分的准备并更有信心。

这些因素结合起来,使 Blind 75 对您和您的准备工作非常有效。

数据结构与算法,专为前端工程师量身定制

我们提供 Blind 75 题单的增强版,专为前端工程师量身定制。

  1. 浏览器内编码工作区: 在我们的浏览器内编码工作区中直接练习 Blind 75 问题,该工作区旨在模拟真实的面试场景。凭借先进的编辑器功能和用户友好的增强功能,大多数用户发现它使用起来很舒服。工作区包含您所需的一切,从解决方案到测试用例,全部集中在一处。立即开始编码—无需注册。

  2. 前面试官提供的 JavaScript / TypeScript 解决方案: 任何熟悉 LeetCode 的人都知道寻找可靠的解决方案来源的挑战。在 GreatFrontEnd 上,每个问题都附带用 JavaScript 和 TypeScript 编写的详细解决方案,这使得前端工程师可以轻松访问。

  3. 自动化测试用例: 自己练习了一个问题,但不确定它是否能胜任这份工作? GreatFrontEnd 提供一键式自动化测试用例,让您可以立即验证解决方案的准确性。这些测试用例由前面试官精心制作,以反映大型科技公司面试过程中实际的期望。