mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[Leetcode] Problem 486 - Predict the Winner

Posted on 2020-10-18 | In Algorithm , LeetCode
Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and t ...
Read more »

[Leetcode] Problem 725 - Split Linked List in Parts

Posted on 2020-10-18 | In Algorithm , LeetCode
Given a (singly) linked list with head node root, write a function to split the linked list into k consecutive linked list “parts”. The length of each ...
Read more »

[Leetcode] Problem 148 - Sort List

Posted on 2020-10-18 | In Algorithm , LeetCode
Given the head of a linked list, return the list after sorting it in ascending order. Follow upCan you sort the linked list in O(n logn) time and O(1) ...
Read more »

[Leetcode] Problem 315 - Count of Smaller Numbers After Self

Posted on 2020-10-16 | In Algorithm , LeetCode
You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smal ...
Read more »

[Leetcode] Problem 699 - Falling Squares

Posted on 2020-10-15 | In Algorithm , LeetCode
On an infinite number line (x-axis), we drop given squares in the order they are given. The i-th square dropped (positions[i] = (left, side_length)) i ...
Read more »

[Leetcode] Problem 218 - The Skyline Problem

Posted on 2020-10-14 | In Algorithm , LeetCode
A city’s skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you are give ...
Read more »

[Leetcode] Problem 715 - Range Module

Posted on 2020-10-13 | In Algorithm , LeetCode
A Range Module is a module that tracks ranges of numbers. Your task is to design and implement the following interfaces in an efficient manner. addRa ...
Read more »

[Leetcode] Problem 745 - Prefix and Suffix Search

Posted on 2020-10-12 | In Algorithm , LeetCode
Design a special dictionary which has some words and allows you to search the words in it by a prefix and a suffix. Implement the WordFilter class: W ...
Read more »

[Leetcode] Problem 865 - Smallest Subtree with all the Deepest Nodes

Posted on 2020-10-11 | In Algorithm , LeetCode
Given the root of a binary tree, the depth of each node is the shortest distance to the root. Return the smallest subtree such that it contains all th ...
Read more »

[Leetcode] Problem 823 - Binary Trees With Factors

Posted on 2020-10-11 | In Algorithm , LeetCode
Given an array of unique integers, each integer is strictly greater than 1. We make a binary tree using these integers and each number may be used for ...
Read more »
1234…78
mrlonelyjtr

mrlonelyjtr

间歇性踌躇满志,持续性混吃等死

780 posts
18 categories
18 tags
Github
© 2020 mrlonelyjtr
Powered by Hexo
Theme - NexT.Pisces