# 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算法学习日志-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 have 2 symbols + and -. Fo...

# Leetcode算法学习日志-287 Find the Duplicate Number

Leetcode 287 Find the Duplicate Number 题目原文 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), pro...

# Leetcode算法学习日志-735 Asteroid Collision

Leetcode 735 Asteroid Collision 题目原文 We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolut...

# Leetcode算法学习日志-738 Monotone Increasing Digits

Leetcode 738 Monotone Increasing Digits 题目原文 Given a non-negative integer N, find the largest number that is less than or equal to N with monoto...

# Leetcode算法学习日志-767 Reorganize String

Leetcode 767 Reorganize String 题目原文 Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each oth...

# 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 as directed edges times[...

# Leetcode算法学习日志-748 Shortest Completing Word

Leetcode 748 Shortest Completing Word题目原文Find the minimum length word from a given dictionary words, which has all the letters from the string licens...

# 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 the path has the same value. ...

# 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 repeated such that B is a sub...

# Topcoder SRM 727 TwoDiagonals

Topcoder SRM 727 TwoDiagonals 题目原文 Bearland can be represented as a horizontal plane with N distinct points, denoting positions of N cities.The i...

# 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 the numbers from either end o...

# Leetcode算法学习日志-496 Next Greater Element

Leetcode 496 Next Greater Element 题目原文 You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2...

# hiho一下183周 Counting Island II

hiho一下183周 Counting Island II 题目原文 Country H is going to carry out a huge artificial islands project. The project region is divided into a 10...

# Codechef Wonder Woman and the Dark man

Codechef Wonder Woman and the Dark man 题目原文 Input The first line contains 'N' number of numbers formed by the magic cave followed by the seque...

# Leetcode算法学习日志-752 Open the Lock

Leetcode 752 Open the Lock 题目原文 You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '...

# Leetcode算法学习日志-751 IP to CIDR

Leetcode 751 IP to CIDR 题目原文 Given a start IP address ip and a number of ips we need to cover n, return a representation of the range as a list ...

# Atcoder wide flip解题报告

Atcoder wide flip 题目原文 You are given a string S consisting of 0 and 1.Find the maximum integer K not greater than |S| such that we can turn a...

个人资料
等级：
访问量： 1万+
积分： 959
排名： 5万+
文章分类
最新评论