GoodTecher

Be a Good Techer and Tech for Good. www.goodtecher.com

Skip to content
Menu
  • Home
  • LeetCode
    • Array
    • Binary Search
    • Binary Tree
    • Depth First Search
    • Design
    • Dynamic Programming
    • Linked List
    • Math
    • Stack
    • String
    • Two Pointers
    • Union Find
  • Useful

Category: Graph

  • Posted on June 25, 2021June 25, 2021
  • Graph

LeetCode 547. Number of Provinces

Description https://leetcode.com/problems/number-of-provinces/ There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and…

Continue Reading
  • Posted on June 24, 2021June 24, 2021
  • Graph

LeetCode 690. Employee Importance

Description https://leetcode.com/problems/employee-importance/ You have a data structure of employee information, which includes the employee’s unique id, their importance value, and…

Continue Reading
  • Posted on June 17, 2021June 17, 2021
  • Graph

LeetCode 797. All Paths From Source to Target

Description https://leetcode.com/problems/all-paths-from-source-to-target/ Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n – 1, find all possible paths from node 0 to…

Continue Reading
  • Posted on June 13, 2021June 13, 2021
  • Graph

LeetCode 323. Number of Connected Components in an Undirected Graph

Description https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/ You have a graph of n nodes. You are given an integer n and an array edges where edges[i] = [ai, bi] indicates that there is…

Continue Reading
  • Posted on May 24, 2021May 24, 2021
  • Graph

LeetCode 1791. Find Center of Star Graph

Description https://leetcode.com/problems/find-center-of-star-graph/ There is an undirected star graph consisting of n nodes labeled from 1 to n. A star graph is a graph where there is one center node…

Continue Reading
  • Posted on October 16, 2020October 16, 2020
  • Graph

LeetCode 399. Evaluate Division

Description https://leetcode.com/problems/most-common-word/ You are given an array of variable pairs equations and an array of real numbers values, where equations[i] = [Ai, Bi] and values[i] represent the…

Continue Reading
  • Posted on October 14, 2020June 14, 2021
  • Graph

LeetCode 207. Course Schedule

Description https://leetcode.com/problems/course-schedule/ There are a total of numCourses courses you have to take, labeled from 0 to numCourses – 1. You are given an array prerequisites where prerequisites[i]…

Continue Reading
  • Posted on October 12, 2020July 9, 2021
  • Graph

LeetCode 210. Course Schedule II

Description https://leetcode.com/problems/course-schedule-ii/ There are a total of numCourses courses you have to take, labeled from 0 to numCourses – 1. You are given an array prerequisites where prerequisites[i]…

Continue Reading

Posts navigation

Previous Page Page 1 Page 2

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (7)
  • LeetCode (588)
    • Array (185)
    • Backtracking (18)
    • Binary Search (19)
    • Binary Tree (63)
    • Bit Manipulation (15)
    • Database (40)
    • Depth First Search (6)
    • Design (10)
    • Dynamic Programming (17)
    • Graph (18)
    • Greedy (5)
    • Heap (1)
    • Linked List (26)
    • Math (36)
    • Recursion (3)
    • Sorting (11)
    • Stack (11)
    • String (95)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2025 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress