原创 Leetcode算法學習日誌-315 Count of Small Numbers After Self

Leetcode 315 Count of Small Numbers After Self 題目原文 You are given an integer array nums and you have to return a newc

原创 Leetcode算法學習日誌-437 Path Sum III

Leetcode 437 Path Sum III 題目原文 You are given a binary tree in which each node contains an integer value. Find the numb

原创 Leetcode算法學習日誌-257 Binary Tree Paths

Leetcode 257 Binary Tree Paths 題目原文 Given a binary tree, return all root-to-leaf paths. For example, given the followi

原创 Leetcode算法學習日誌-720 Longest Word in Dictionary

Leetcode 720 Longest Word in Dictionary 題目原文 Given a list of strings words representing an English Dictionary, find th

原创 Leetcode算法學習日誌-684 Redundant Connection

Leetcode 684 Redundant Connection 題目原文 In this problem, a tree is an undirected graph that is connected and has no cyc

原创 Leetcode算法學習日誌-572 Subtree of Another Tree

Leetcode 572 Subtree of Another Tree 題目原文 Given two non-empty binary trees s and t, check whether tree t has exactly t

原创 Leetcode算法學習日誌-144 Binary Tree Preorder Traversal

Leetcode 144 Binary Tree Preorder Traversal題目原文Given a binary tree, return the preorder traversal of its nodes' values.

原创 Leetcode算法學習日誌-686 Repeated String Match

Leetcode 686 Repeated String Match 題目原文 Given two strings A and B, find the minimum number of times A has to be repe

原创 Leetcode算法學習日誌-748 Shortest Completing Word

Leetcode 748 Shortest Completing Word題目原文Find the minimum length word from a given dictionary words, which has all the

原创 Leetcode算法學習日誌-494 Target Sum

Leetcode 494 Target Sum 題目原文 You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you

原创 Leetcode算法學習日誌-767 Reorganize String

Leetcode 767 Reorganize String 題目原文 Given a string S, check if the letters can be rearranged so that two characters th

原创 Leetcode算法學習日誌-743 Network Delay Time

Leetcode 743 Network Delay Time 題目原文 There are N network nodes, labelled 1 to N. Given times, a list of travel times

原创 Leetcode算法學習日誌-486 Predict the Winner

Leetcode 486 Predict the Winner 題目原文 Given an array of scores that are non-negative integers. Player 1 picks one of th

原创 Leetcode算法學習日誌-687 Longest Univalue Path

Leetcode 687 Longest Univalue Path 題目原文 Given a binary tree, find the length of the longest path where each node in th

原创 Leetcode算法學習日誌-287 Find the Duplicate Number

Leetcode 287 Find the Duplicate Number 題目原文 Given an array nums containing n + 1 integers where each integer is betwee