![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 74
birdreamer
这个作者很懒,什么都没留下…
展开
-
leetcode 796.Rotate String(python3)
leetcode 796.Rotate String(python3)原题地址:https://leetcode.com/problems/rotate-string/题目We are given two strings, A and B.A shift on A consists of taking string A and moving the leftmost ch...原创 2018-03-11 17:58:04 · 598 阅读 · 0 评论 -
leetcode 811. Subdomain Visit Count
leetcode 811. Subdomain Visit Count原题地址:https://leetcode.com/problems/subdomain-visit-count/题目A website domain like “discuss.leetcode.com” consists of various subdomains. At the top level, ...原创 2018-04-01 18:39:05 · 517 阅读 · 0 评论 -
leetcode 809. Expressive Words
leetcode 809. Expressive Words原题地址:https://leetcode.com/problems/expressive-words/题目Sometimes people repeat letters to represent extra feeling, such as “hello” -> “heeellooo”, “hi” ->...原创 2018-04-01 18:43:30 · 565 阅读 · 0 评论 -
leetcode 808. Soup Servings
leetcode 808. Soup Servings原题地址:https://leetcode.com/problems/soup-servings/题目There are two types of soup: type A and type B. Initially we have N ml of each type of soup. There are four kin...原创 2018-04-01 18:49:02 · 712 阅读 · 0 评论 -
leetcode 810. Chalkboard XOR Game
leetcode 810. Chalkboard XOR Game原题地址:https://leetcode.com/problems/chalkboard-xor-game/题目We are given non-negative integers nums[i] which are written on a chalkboard. Alice and Bob take tu...原创 2018-04-01 20:04:15 · 592 阅读 · 0 评论 -
leetcode 816. Ambiguous Coordinates
leetcode 816. Ambiguous Coordinates原题地址:https://leetcode.com/problems/ambiguous-coordinates/题目We had some 2-dimensional coordinates, like “(1, 3)” or “(2, 0.5)”. Then, we removed all commas...原创 2018-04-15 21:58:28 · 428 阅读 · 0 评论 -
leetcode 817. Linked List Components
leetcode 817. Linked List Components原题地址:https://leetcode.com/problems/linked-list-components/题目We are given head, the head node of a linked list containing unique integer values.We are al...原创 2018-04-15 22:02:45 · 506 阅读 · 0 评论 -
leetcode 819. Most Common Word
leetcode 819. Most Common Word原题地址:https://leetcode.com/problems/most-common-word/题目Given a paragraph and a list of banned words, return the most frequent word that is not in the list of ban...原创 2018-04-15 22:06:42 · 694 阅读 · 0 评论 -
leetcode 818. Race Car
leetcode 818. Race Car原题地址:https://leetcode.com/problems/race-car/题目Your car starts at position 0 and speed +1 on an infinite number line. (Your car can go into negative positions.)Your c...原创 2018-04-16 11:05:30 · 1319 阅读 · 0 评论 -
leetcode 820. Short Encoding of Words
leetcode 820. Short Encoding of Words原题地址:https://leetcode.com/problems/short-encoding-of-words/题目Given a list of words, we may encode it by writing a reference string S and a list of indexe...原创 2018-04-22 18:05:36 · 634 阅读 · 0 评论 -
leetcode 821. Shortest Distance to a Character
leetcode 821. Shortest Distance to a Character原题地址:https://leetcode.com/problems/shortest-distance-to-a-character/题目Given a string S and a character C, return an array of integers representing...原创 2018-04-22 18:08:59 · 396 阅读 · 0 评论 -
leetcode 822. Card Flipping Game
leetcode 822. Card Flipping Game原题地址:https://leetcode.com/problems/card-flipping-game/题目On a table are N cards, with a positive integer printed on the front and back of each card (possibly d...原创 2018-04-22 18:15:58 · 497 阅读 · 0 评论 -
leetcode 823. Binary Trees With Factors
leetcode 823. Binary Trees With Factors原题地址:https://leetcode.com/problems/binary-trees-with-factors/题目Given an array of unique integers, each integer is strictly greater than 1.We make a b...原创 2018-04-22 18:20:51 · 427 阅读 · 0 评论 -
leetcode 824. Goat Latin
leetcode 824. Goat Latin原题地址:https://leetcode.com/problems/goat-latin/题目A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters on...原创 2018-05-02 19:50:04 · 495 阅读 · 0 评论 -
leetcode805. Split Array With Same Average
leetcode805. Split Array With Same Average原题地址:https://leetcode.com/problems/split-array-with-same-average/题目In a given integer array A, we must move every element of A to either list B or l...原创 2018-03-25 21:22:04 · 512 阅读 · 0 评论 -
leetcode 815. Bus Routes
leetcode 815. Bus Routes原题地址:https://leetcode.com/problems/bus-routes/ 代码转载自:https://leetcode.com/problems/bus-routes/discuss/122723/Python-Simple-BFS题目We have a list of bus routes. Each ro...原创 2018-04-08 12:14:21 · 1174 阅读 · 0 评论 -
leetcode 797. All Paths From Source to Target(python3)
leetcode 797. All Paths From Source to Target(python3)原题地址:https://leetcode.com/problems/all-paths-from-source-to-target/题目Given a directed, acyclic graph of N nodes. Find all possible pat...原创 2018-03-11 18:08:46 · 566 阅读 · 0 评论 -
leetcode 798. Smallest Rotation with Highest Score(java)
leetcode798. Smallest Rotation with Highest Score(java)原题地址:https://leetcode.com/problems/smallest-rotation-with-highest-score/题目Given an array A, we may rotate it by a non-negative integer...原创 2018-03-11 18:57:42 · 692 阅读 · 0 评论 -
leetcode799. Champagne Tower(python3)
leetcode799. Champagne Tower(python3)原题地址:https://leetcode.com/problems/champagne-tower/题目We stack glasses in a pyramid, where the first row has 1 glass, the second row has 2 glasses, and so...原创 2018-03-11 19:08:33 · 629 阅读 · 0 评论 -
leetcode800. Similar RGB Color(python)
leetcode800. Similar RGB Color(python)原题地址:题目In the following, every capital letter represents some hexadecimal digit from 0 to f.The red-green-blue color “#AABBCC” can be written as “#ABC...原创 2018-03-18 14:27:25 · 787 阅读 · 0 评论 -
leetcode801. Minimum Swaps To Make Sequences Increasing(python)
leetcode801. Minimum Swaps To Make Sequences Increasing(python)原题地址:https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/题目We have two integer sequences A and B of the same...原创 2018-03-18 14:31:18 · 870 阅读 · 0 评论 -
leetcode802. Find Eventual Safe States(python)
leetcode802. Find Eventual Safe States(python)原题地址:https://leetcode.com/problems/find-eventual-safe-states/题目In a directed graph, we start at some node and every turn, walk along a directed ed...原创 2018-03-18 14:35:36 · 464 阅读 · 0 评论 -
leetcode803. Bricks Falling When Hit(python)
803. Bricks Falling When Hit(python)原题地址:https://leetcode.com/problems/bricks-falling-when-hit/摘自leetcode 用户:cthbst题目We have a grid of 1s and 0s; the 1s in a cell represent bricks. A bri...原创 2018-03-18 19:07:07 · 650 阅读 · 0 评论 -
leetcode806. Number of Lines To Write String
leetcode806. Number of Lines To Write String(python)原题地址:https://leetcode.com/problems/number-of-lines-to-write-string/题目We are to write the letters of a given string S, from left to right int...原创 2018-03-25 20:14:35 · 250 阅读 · 0 评论 -
leetcode804. Unique Morse Code Words
leetcode804. Unique Morse Code Words(python)原题地址:https://leetcode.com/problems/unique-morse-code-words/题目International Morse Code defines a standard encoding where each letter is mapped to a...原创 2018-03-25 20:13:36 · 345 阅读 · 0 评论 -
leetcode807.Max Increase to Keep City Skyline
leetcode807. Max Increase to Keep City Skyline原题地址:https://leetcode.com/problems/max-increase-to-keep-city-skyline/题目In a 2 dimensional array grid, each value grid[i][j] represents the height ...原创 2018-03-25 20:15:21 · 237 阅读 · 0 评论 -
leetcode 812. Largest Triangle Area
leetcode 812. Largest Triangle Area原题地址:https://leetcode.com/problems/largest-triangle-area/题目You have a list of points in the plane. Return the area of the largest triangle that can be form...原创 2018-04-08 11:48:39 · 391 阅读 · 0 评论 -
leetcode 814. Binary Tree Pruning
leetcode 814. Binary Tree Pruning原题地址:https://leetcode.com/problems/binary-tree-pruning/题目We are given the head node root of a binary tree, where additionally every node’s value is either a ...原创 2018-04-08 11:57:32 · 257 阅读 · 0 评论 -
leetcode 813. Largest Sum of Averages
leetcode 813. Largest Sum of Averages原题地址:https://leetcode.com/problems/largest-sum-of-averages/题目We partition a row of numbers A into at most K adjacent (non-empty) groups, then our score i...原创 2018-04-08 12:01:19 · 698 阅读 · 0 评论 -
leetcode 825. Friends Of Appropriate Ages
leetcode 825. Friends Of Appropriate Ages原题地址:https://leetcode.com/problems/friends-of-appropriate-ages/题目Some people will make friend requests. The list of their ages is given and ages[i] is ...原创 2018-05-02 19:56:41 · 667 阅读 · 1 评论