mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 260 - Single Number III

Posted on 2019-03-24 | In Algorithm , LeetCode
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements ...
Read more »

[LeetCode] Problem 703 - Kth Largest Element in a Stream

Posted on 2019-03-24 | In Algorithm , LeetCode
Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. ...
Read more »

[LeetCode] Problem 215 - Kth Largest Element in an Array

Posted on 2019-03-24 | In Algorithm , LeetCode
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. ExampleN ...
Read more »

[LintCode] Problem 541 - Zigzag Iterator II

Posted on 2019-03-24 | In Algorithm , LintCode
Follow up Zigzag Iterator: What if you are given k 1d vectors? How well can your code be extended to such cases? The “Zigzag” order is not clearly def ...
Read more »

[LintCode] Problem 540 - Zigzag Iterator

Posted on 2019-03-24 | In Algorithm , LintCode
Given two 1d vectors, implement an iterator to return their elements alternately. ExampleNo.1Input: v1 = [1, 2] and v2 = [3, 4, 5, 6] Output: [1, 3, 2 ...
Read more »

[LintCode] Problem 904 - Plus One Linked List

Posted on 2019-03-23 | In Algorithm , LintCode
Given a non-negative integer represented as non-empty a singly linked list of digits, plus one to the integer. You may assume the integer do not conta ...
Read more »

[LintCode] Problem 872 - Kill Process

Posted on 2019-03-23 | In Algorithm , LintCode
In this problem, each process has a unique PID (process id) and PPID (parent process id). Each process only has one parent process, but may have one o ...
Read more »

[LintCode] Problem 879 - Output Contest Matches

Posted on 2019-03-23 | In Algorithm , LintCode
During the NBA playoffs, we always arrange the rather strong team to play with the rather weak team, like make the rank 1 team play with the rank nth ...
Read more »

[LeetCode] Problem 200 - Number of Islands

Posted on 2019-03-21 | In Algorithm , LeetCode
Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen ...
Read more »

[LintCode] Problem 650 - Find Leaves of Binary Tree

Posted on 2019-03-21 | In Algorithm , LintCode
Given a binary tree, collect a tree’s nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. ExampleNo.1Input ...
Read more »
1…525354…78
mrlonelyjtr

mrlonelyjtr

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

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