240 发简信
IP属地:加州
  • 785. Is Graph Bipartite?

    Given an undirected graph, return true if and only if it is bipartite. R...

  • DFS/BFS

    DFS, BFS 假设点的数目为v, time complexity都为O(v)space complexity, BFS worst case...

  • 562. Longest Line of Consecutive One in Matrix

    Given a 01 matrix M, find the longest line of consecutive one in the mat...

  • 734. Sentence Similarity

    Given two sentences words1, words2 (each represented as an array of stri...

  • 779. K-th Symbol in Grammar

    On the first row, we write a 0. Now in every subsequent row, we look at ...

  • 789. Escape The Ghosts

    You are playing a simplified Pacman game. You start at the point (0, 0),...

  • Resize,w 360,h 240
    802. Find Eventual Safe States

    In a directed graph, we start at some node and every turn, walk along a ...

  • 689. Maximum Sum of 3 Non-Overlapping Subarrays

    In a given array nums of positive integers, find three non-overlapping s...

  • 753. Cracking the Safe

    There is a box protected by a password. The password is n digits, where ...