ICode9

精准搜索请尝试: 精确搜索
  • 《中英双解》leetCode Find if path exists in graph2021-11-28 18:32:26

    There is a bi-directional graph with n vertices, where each vertex is labeled from 0 to n - 1 (inclusive). The edges in the graph are represented as a 2D integer array edges, where each edges[i] = [ui, vi] denotes a bi-directional edge between v

  • 《中英双解》leetCode Find the town judge(找到小镇法官)2021-11-26 10:02:27

    In a town, there are n people labeled from 1 to n. There is a rumor that one of these people is secretly the town judge. If the town judge exists, then: The town judge trusts nobody. Everybody (except for the town judge) trusts the town judge. There is ex

  • 《中英双解》leetCode Populating Next Right Pointers in Each Node2021-11-24 18:32:22

    You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition: struct Node {   int val;   Node *left;   Node *right;   Node *next; } Populate each next pointe

  • 《中英双解》leetCode 119 Pascal‘s Triangle II2021-11-12 20:04:54

    Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it as shown: 给定一个非负索引 rowIndex,返回「杨辉三角」的第 rowIndex 行。 在「杨辉三

  • 《中英双解》leetCode 3Sum(三数之和)2021-10-18 21:32:09

    Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contain duplicate triplets. 给你一个包含 n 个整数的数组

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有