09 2020 档案

摘要:package LeetCode_684 import java.util.* import kotlin.collections.ArrayList import kotlin.collections.HashMap /** * 684. Redundant Connection * https: 阅读全文
posted @ 2020-09-30 13:52 johnny_zhao 阅读(116) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_272 import java.util.* import kotlin.collections.ArrayList /** * 272. Closest Binary Search Tree Value II * (Prime) * Given a non-emp 阅读全文
posted @ 2020-09-28 21:46 johnny_zhao 阅读(107) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_270 import java.util.* /** * 270. Closest Binary Search Tree Value * (Prime) * Given a non-empty binary search tree and a target valu 阅读全文
posted @ 2020-09-28 21:30 johnny_zhao 阅读(96) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_277 /** * 277. Find the Celebrity * (Prime) * Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, ther 阅读全文
posted @ 2020-09-28 20:57 johnny_zhao 阅读(135) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_724 /** * 724. Find Pivot Index * https://leetcode.com/problems/find-pivot-index/description/ * * Given an array of integers nums, wr 阅读全文
posted @ 2020-09-27 23:02 johnny_zhao 阅读(98) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_658 /** * 658. Find K Closest Elements * https://leetcode.com/problems/find-k-closest-elements/description/ * * Given a sorted array 阅读全文
posted @ 2020-09-27 22:22 johnny_zhao 阅读(70) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_232 import java.util.* /** * 232. Implement Queue using Stacks * https://leetcode.com/problems/implement-queue-using-stacks/descripti 阅读全文
posted @ 2020-09-25 22:18 johnny_zhao 阅读(87) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_225 import java.util.* /** * 225. Implement Stack using Queues * https://leetcode.com/problems/implement-stack-using-queues/descripti 阅读全文
posted @ 2020-09-25 21:50 johnny_zhao 阅读(92) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_739 import java.util.* /** * 739. Daily Temperatures * https://leetcode.com/problems/daily-temperatures/description/ * * Given a list 阅读全文
posted @ 2020-09-24 23:16 johnny_zhao 阅读(122) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_17 /** * 17. Letter Combinations of a Phone Number * https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ 阅读全文
posted @ 2020-09-24 11:09 johnny_zhao 阅读(120) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_763 /** * 763. Partition Labels * https://leetcode.com/problems/partition-labels/description/ * * A string S of lowercase English let 阅读全文
posted @ 2020-09-23 23:48 johnny_zhao 阅读(101) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_535 /** * 535. Encode and Decode TinyURL * https://leetcode.com/problems/encode-and-decode-tinyurl/description/ * * TinyURL is a URL 阅读全文
posted @ 2020-09-23 23:41 johnny_zhao 阅读(145) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_394 import java.util.* /** * 394. Decode String * https://leetcode.com/problems/decode-string/description/ * * Given an encoded strin 阅读全文
posted @ 2020-09-23 00:58 johnny_zhao 阅读(146) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_914 /** * 914. X of a Kind in a Deck of Cards * https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/description/ * * In a de 阅读全文
posted @ 2020-09-21 22:29 johnny_zhao 阅读(150) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1310 /** * 1310. XOR Queries of a Subarray * https://leetcode.com/problems/xor-queries-of-a-subarray/description/ * * Given the array 阅读全文
posted @ 2020-09-21 00:25 johnny_zhao 阅读(133) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_421 /** * 421. Maximum XOR of Two Numbers in an Array * https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/descript 阅读全文
posted @ 2020-09-20 23:33 johnny_zhao 阅读(114) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_80 /** * 80. Remove Duplicates from Sorted Array II * https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/descriptio 阅读全文
posted @ 2020-09-19 23:56 johnny_zhao 阅读(107) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_281 import java.util.* /** * 281. Zigzag Iterator * (Prime) * Given two 1d vectors, implement an iterator to return their elements al 阅读全文
posted @ 2020-09-18 23:09 johnny_zhao 阅读(137) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_173 import java.util.* /** * 173. Binary Search Tree Iterator * https://leetcode.com/problems/binary-search-tree-iterator/description 阅读全文
posted @ 2020-09-16 22:52 johnny_zhao 阅读(91) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_173 /** * 173. Binary Search Tree Iterator * https://leetcode.com/problems/binary-search-tree-iterator/description/ * * Implement an 阅读全文
posted @ 2020-09-16 22:32 johnny_zhao 阅读(117) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_287 /** * 287. Find the Duplicate Number * https://leetcode.com/problems/find-the-duplicate-number/description/ * * Given an array of 阅读全文
posted @ 2020-09-16 00:16 johnny_zhao 阅读(132) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_142 /** * 142. Linked List Cycle II * https://leetcode.com/problems/linked-list-cycle-ii/description/ * * Given a linked list, return 阅读全文
posted @ 2020-09-15 00:12 johnny_zhao 阅读(156) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_358 import java.util.* import kotlin.collections.ArrayList import kotlin.collections.HashMap /** * 358. Rearrange String k Distance A 阅读全文
posted @ 2020-09-14 23:19 johnny_zhao 阅读(146) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_463 /** * 463. Island Perimeter * https://leetcode.com/problems/island-perimeter/description/ * * You are given row x col grid repres 阅读全文
posted @ 2020-09-12 23:52 johnny_zhao 阅读(122) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_428 import java.util.* import kotlin.collections.ArrayList /** * 428. Serialize and Deserialize N-ary Tree * (Prime) * Serialization 阅读全文
posted @ 2020-09-11 23:19 johnny_zhao 阅读(123) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_633 /** * 633. Sum of Square Numbers * https://leetcode.com/problems/sum-of-square-numbers/description/ * * Given a non-negative inte 阅读全文
posted @ 2020-09-09 23:26 johnny_zhao 阅读(106) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_743 import java.util.* import kotlin.collections.ArrayList /** * 743. Network Delay Time * https://leetcode.com/problems/network-dela 阅读全文
posted @ 2020-09-09 00:08 johnny_zhao 阅读(170) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_758 import java.util.* import kotlin.collections.HashSet /** * 758. Bold Words in String * (Prime) * Given a set of keywords words an 阅读全文
posted @ 2020-09-08 18:04 johnny_zhao 阅读(179) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_616 import java.util.* import kotlin.collections.HashSet /** * 616. Add Bold Tag in String * (Prime) * Given a string s and a list of 阅读全文
posted @ 2020-09-08 18:01 johnny_zhao 阅读(133) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_708 /** * 708. Insert into a Cyclic Sorted List * (Prime) * Given a node from a cyclic linked list which is sorted in ascending order 阅读全文
posted @ 2020-09-08 15:58 johnny_zhao 阅读(180) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_24 /** * 24. Swap Nodes in Pairs * https://leetcode.com/problems/swap-nodes-in-pairs/description/ * * Given a linked list, swap every 阅读全文
posted @ 2020-09-08 11:42 johnny_zhao 阅读(147) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_877 /** * 877. Stone Game * https://leetcode.com/problems/stone-game/description/ * * Alex and Lee play a game with piles of stones. 阅读全文
posted @ 2020-09-07 23:28 johnny_zhao 阅读(182) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_163 /** * 163. Missing Ranges * (Prime) *Given a sorted integer array nums, where the range of elements are in the inclusive range [l 阅读全文
posted @ 2020-09-07 12:15 johnny_zhao 阅读(100) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_228 /** * 228. Summary Ranges * https://leetcode.com/problems/summary-ranges/description/ * Given a sorted integer array without dupl 阅读全文
posted @ 2020-09-06 15:22 johnny_zhao 阅读(104) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_381 /** * 381. Insert Delete GetRandom O(1) - Duplicates allowed * https://leetcode.com/problems/insert-delete-getrandom-o1-duplicate 阅读全文
posted @ 2020-09-06 12:16 johnny_zhao 阅读(91) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_118 import java.util.* /** * 118. Pascal's Triangle * https://leetcode.com/problems/pascals-triangle/description/ * Given a non-negat 阅读全文
posted @ 2020-09-05 23:51 johnny_zhao 阅读(101) 评论(0) 推荐(0) 编辑
摘要:/** * This problem was asked by Facebook. Given a multiset of integers, return whether it can be partitioned into two subsets whose sums are the same. 阅读全文
posted @ 2020-09-05 23:22 johnny_zhao 阅读(143) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_62 /** * 62. Unique Paths * https://leetcode.com/problems/unique-paths/description/ * * A robot is located at the top-left corner of 阅读全文
posted @ 2020-09-04 23:16 johnny_zhao 阅读(105) 评论(0) 推荐(0) 编辑
摘要:package _interview_question /** * Given an array of integers size 'n' Our aim is to calculate the maximum sum of 'k' consecutive elements in the array 阅读全文
posted @ 2020-09-03 22:54 johnny_zhao 阅读(77) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_516 /** * 516. Longest Palindromic Subsequence * https://leetcode.com/problems/longest-palindromic-subsequence/description/ * * Given 阅读全文
posted @ 2020-09-03 00:24 johnny_zhao 阅读(136) 评论(0) 推荐(0) 编辑
摘要:/** * 1143. Longest Common Subsequence * https://leetcode.com/problems/longest-common-subsequence/description/ * * Given two strings text1 and text2, 阅读全文
posted @ 2020-09-02 22:30 johnny_zhao 阅读(132) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示