11 2020 档案

摘要:package LeetCode_611 /** * 611. Valid Triangle Number * https://leetcode.com/problems/valid-triangle-number/ * Given an array consists of non-negative 阅读全文
posted @ 2020-11-30 12:53 johnny_zhao 阅读(59) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_611 /** * 611. Valid Triangle Number * https://leetcode.com/problems/valid-triangle-number/ * Given an array consists of non-negative 阅读全文
posted @ 2020-11-30 12:52 johnny_zhao 阅读(57) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1672 /** * 1672. Richest Customer Wealth * https://leetcode.com/problems/richest-customer-wealth/submissions/ * You are given an m x 阅读全文
posted @ 2020-11-29 23:00 johnny_zhao 阅读(134) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1664 /** * 1664. Ways to Make a Fair Array * https://leetcode.com/problems/ways-to-make-a-fair-array/ * You are given an integer arra 阅读全文
posted @ 2020-11-28 15:48 johnny_zhao 阅读(96) 评论(0) 推荐(0) 编辑
摘要:import java.util.concurrent.atomic.AtomicInteger /** * This problem was asked by Microsoft. Implement the singleton pattern with a twist. First, inste 阅读全文
posted @ 2020-11-28 11:13 johnny_zhao 阅读(74) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1162 import java.util.* /** * 1162. As Far from Land as Possible * https://leetcode.com/problems/as-far-from-land-as-possible/ * Give 阅读全文
posted @ 2020-11-27 21:52 johnny_zhao 阅读(144) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_476 /** * 476. Number Complement * https://leetcode.com/problems/number-complement/description/ * Given a positive integer num, outpu 阅读全文
posted @ 2020-11-27 00:15 johnny_zhao 阅读(54) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_735 import java.util.* /** * 735. Asteroid Collision * https://leetcode.com/problems/asteroid-collision/ * We are given an array aste 阅读全文
posted @ 2020-11-26 18:38 johnny_zhao 阅读(100) 评论(0) 推荐(0) 编辑
摘要:/** * This problem was asked by Google. Given a set of closed intervals, find the smallest set of numbers that covers all the intervals. If there are 阅读全文
posted @ 2020-11-25 10:45 johnny_zhao 阅读(67) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1663 /** * 1663. Smallest String With A Given Numeric Value * https://leetcode.com/problems/smallest-string-with-a-given-numeric-valu 阅读全文
posted @ 2020-11-24 13:33 johnny_zhao 阅读(64) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1662 /** * 1662. Check If Two String Arrays are Equivalent * https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent/ 阅读全文
posted @ 2020-11-22 23:41 johnny_zhao 阅读(87) 评论(0) 推荐(0) 编辑
摘要:... 阅读全文
posted @ 2020-11-21 23:31 johnny_zhao 阅读(70) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_733 import java.util.* /** * 733. Flood Fill * https://leetcode.com/problems/flood-fill/ * An image is represented by a 2-D array of 阅读全文
posted @ 2020-11-20 22:22 johnny_zhao 阅读(112) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_703 import java.util.* /** * 703. Kth Largest Element in a Stream * https://leetcode.com/problems/kth-largest-element-in-a-stream/ * 阅读全文
posted @ 2020-11-20 21:28 johnny_zhao 阅读(78) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_508 /** * 508. Most Frequent Subtree Sum https://leetcode.com/problems/most-frequent-subtree-sum/ * Given the root of a tree, you are 阅读全文
posted @ 2020-11-20 20:44 johnny_zhao 阅读(76) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_701 /** * 701. Insert into a Binary Search Tree * https://leetcode.com/problems/insert-into-a-binary-search-tree/ * You are given the 阅读全文
posted @ 2020-11-20 18:14 johnny_zhao 阅读(80) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_694 import java.util.* import kotlin.collections.HashSet /** * 694. Number of Distinct Islands * (Prime) * Given a non-empty 2D array 阅读全文
posted @ 2020-11-20 17:14 johnny_zhao 阅读(73) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1289 /** * 1289. Minimum Falling Path Sum II * https://leetcode.com/problems/minimum-falling-path-sum-ii/ * Given a square grid of in 阅读全文
posted @ 2020-11-19 22:21 johnny_zhao 阅读(72) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_931 /** * 931. Minimum Falling Path Sum * https://leetcode.com/problems/minimum-falling-path-sum/ * * Given a square array of integer 阅读全文
posted @ 2020-11-19 16:39 johnny_zhao 阅读(101) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_688 /** * 688. Knight Probability in Chessboard * https://leetcode.com/problems/knight-probability-in-chessboard/ * * On an NxN chess 阅读全文
posted @ 2020-11-18 23:44 johnny_zhao 阅读(107) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_827 import java.util.* import kotlin.collections.HashMap /** * 827. Making A Large Island * https://leetcode.com/problems/making-a-la 阅读全文
posted @ 2020-11-18 15:06 johnny_zhao 阅读(158) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_283 /** * 283. Move Zeroes * https://leetcode.com/problems/move-zeroes/description/ * * Given an array nums, * write a function to mo 阅读全文
posted @ 2020-11-17 11:55 johnny_zhao 阅读(75) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_234 /** * 234. Palindrome Linked List * https://leetcode.com/problems/palindrome-linked-list/ * * Given a singly linked list, determi 阅读全文
posted @ 2020-11-16 11:24 johnny_zhao 阅读(60) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1342 /** * 1342. Number of Steps to Reduce a Number to Zero * https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zer 阅读全文
posted @ 2020-11-16 00:14 johnny_zhao 阅读(105) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1658 /** * 1658. Minimum Operations to Reduce X to Zero * https://leetcode.com/problems/minimum-operations-to-reduce-x-to-zero/ * You 阅读全文
posted @ 2020-11-15 19:25 johnny_zhao 阅读(179) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1657 /** * 1657. Determine if Two Strings Are Close * https://leetcode.com/problems/determine-if-two-strings-are-close/ * * Two strin 阅读全文
posted @ 2020-11-15 17:00 johnny_zhao 阅读(97) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1656 /** * 1656. Design an Ordered Stream * https://leetcode.com/problems/design-an-ordered-stream/ * There are n (id, value) pairs, 阅读全文
posted @ 2020-11-15 12:28 johnny_zhao 阅读(131) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_695 import java.util.* /** * 695. Max Area of Island * * Given a non-empty 2D array grid of 0's and 1's, * an island is a group of 1' 阅读全文
posted @ 2020-11-15 00:11 johnny_zhao 阅读(83) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_695 import java.util.* /** * 695. Max Area of Island * * Given a non-empty 2D array grid of 0's and 1's, * an island is a group of 1' 阅读全文
posted @ 2020-11-15 00:09 johnny_zhao 阅读(69) 评论(0) 推荐(0) 编辑
摘要:import java.util.* /** This problem was asked by Quora. Given an absolute pathname that may have . or .. as part of it, return the shortest standardiz 阅读全文
posted @ 2020-11-14 10:01 johnny_zhao 阅读(68) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_939 /** * 939. Minimum Area Rectangle * https://leetcode.com/problems/minimum-area-rectangle/ * * Given a set of points in the xy-pla 阅读全文
posted @ 2020-11-13 16:46 johnny_zhao 阅读(97) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_259 /** * 259. 3Sum Smaller * (Prime) * Given an array of n integers nums and a target, * find the number of index triplets i, j, k w 阅读全文
posted @ 2020-11-13 09:39 johnny_zhao 阅读(41) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_29 /** * 29. Divide Two Integers * https://leetcode.com/problems/divide-two-integers/ * * Given two integers dividend and divisor, di 阅读全文
posted @ 2020-11-12 16:53 johnny_zhao 阅读(87) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_16 /** * 16. 3Sum Closest * https://leetcode.com/problems/3sum-closest/ * * Given an array nums of n integers and an integer target, 阅读全文
posted @ 2020-11-11 10:22 johnny_zhao 阅读(85) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_15 /** * 15. 3Sum * https://leetcode.com/problems/3sum/ * * Given an array nums of n integers, are there elements a, b, c in nums suc 阅读全文
posted @ 2020-11-11 09:57 johnny_zhao 阅读(137) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1302 import java.util.* /** * 1302. Deepest Leaves Sum * https://leetcode.com/problems/deepest-leaves-sum/ * Given a binary tree, ret 阅读全文
posted @ 2020-11-10 17:49 johnny_zhao 阅读(39) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1315 import java.util.* /** * 1315. Sum of Nodes with Even-Valued Grandparent * https://leetcode.com/problems/sum-of-nodes-with-even- 阅读全文
posted @ 2020-11-10 16:25 johnny_zhao 阅读(84) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_679 /** * 679. 24 Game * https://leetcode.com/problems/24-game/ * * You have 4 cards each containing a number from 1 to 9. * You need 阅读全文
posted @ 2020-11-10 15:48 johnny_zhao 阅读(86) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_8 /** * 8. String to Integer (atoi) * https://leetcode.com/problems/string-to-integer-atoi/ * * Implement atoi which converts a strin 阅读全文
posted @ 2020-11-09 12:38 johnny_zhao 阅读(78) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1649 /** * 1649. Create Sorted Array through Instructions * https://leetcode.com/problems/create-sorted-array-through-instructions/ * 阅读全文
posted @ 2020-11-09 11:06 johnny_zhao 阅读(154) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1331 import java.util.* import kotlin.collections.HashMap /** * 1331. Rank Transform of an Array * https://leetcode.com/problems/rank 阅读全文
posted @ 2020-11-08 16:33 johnny_zhao 阅读(149) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1646 /** * 1646. Get Maximum in Generated Array * https://leetcode.com/problems/get-maximum-in-generated-array/ * * You are given an 阅读全文
posted @ 2020-11-08 15:44 johnny_zhao 阅读(106) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1647 import java.util.* import kotlin.collections.HashMap /** * 1647. Minimum Deletions to Make Character Frequencies Unique * https: 阅读全文
posted @ 2020-11-08 12:34 johnny_zhao 阅读(292) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_670 /** * 670. Maximum Swap * https://leetcode.com/problems/maximum-swap/description/ * * Given a non-negative integer, you could swa 阅读全文
posted @ 2020-11-07 23:17 johnny_zhao 阅读(100) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_662 import java.util.* import kotlin.collections.ArrayList /** * 662. Maximum Width of Binary Tree * https://leetcode.com/problems/ma 阅读全文
posted @ 2020-11-07 17:17 johnny_zhao 阅读(93) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_170 import java.util.* /** * 170. Two Sum III - Data structure design * (Prime) * Design and implement a TwoSum class. It should supp 阅读全文
posted @ 2020-11-07 11:35 johnny_zhao 阅读(85) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_653 /** * 653. Two Sum IV - Input is a BST * https://leetcode.com/problems/two-sum-iv-input-is-a-bst/ * * Given the root of a Binary 阅读全文
posted @ 2020-11-07 10:55 johnny_zhao 阅读(57) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_647 /** * 647. Palindromic Substrings * https://leetcode.com/problems/palindromic-substrings/ * Given a string, your task is to count 阅读全文
posted @ 2020-11-06 22:54 johnny_zhao 阅读(63) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_642 import java.util.* import kotlin.collections.ArrayList import kotlin.collections.HashMap /** * 642. Design Search Autocomplete Sy 阅读全文
posted @ 2020-11-06 21:34 johnny_zhao 阅读(69) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_319 /** * 319. Bulb Switcher * https://leetcode.com/problems/bulb-switcher/ * * There are n bulbs that are initially off. You first t 阅读全文
posted @ 2020-11-06 15:09 johnny_zhao 阅读(77) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1332 /** * 1332. Remove Palindromic Subsequences * https://leetcode.com/problems/remove-palindromic-subsequences/ * * Given a string 阅读全文
posted @ 2020-11-06 11:27 johnny_zhao 阅读(75) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1460 /** * 1460. Make Two Arrays Equal by Reversing Sub-arrays * https://leetcode.com/problems/make-two-arrays-equal-by-reversing-sub 阅读全文
posted @ 2020-11-05 14:07 johnny_zhao 阅读(69) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_593 /** * 593. Valid Square * https://leetcode.com/problems/valid-square/ * * Given the coordinates of four points in 2D space, retur 阅读全文
posted @ 2020-11-04 21:46 johnny_zhao 阅读(80) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_572 import java.util.* /** * 572. Subtree of Another Tree * https://leetcode.com/problems/subtree-of-another-tree/ * * Given two non- 阅读全文
posted @ 2020-11-04 11:11 johnny_zhao 阅读(51) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_525 /** * 525. Contiguous Array * https://leetcode.com/problems/contiguous-array/description/ * * Given a binary array, find the maxi 阅读全文
posted @ 2020-11-03 23:16 johnny_zhao 阅读(77) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1358 /** * 1358. Number of Substrings Containing All Three Characters * https://leetcode.com/problems/number-of-substrings-containing 阅读全文
posted @ 2020-11-03 21:29 johnny_zhao 阅读(105) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1392 /** * 1392. Longest Happy Prefix * https://leetcode.com/problems/longest-happy-prefix/ * * A string is called a happy prefix if 阅读全文
posted @ 2020-11-03 18:15 johnny_zhao 阅读(100) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_872 import java.util.* /** * 872. Leaf-Similar Trees * https://leetcode.com/problems/leaf-similar-trees/ * * Consider all the leaves 阅读全文
posted @ 2020-11-03 15:11 johnny_zhao 阅读(75) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_554 /** * 554. Brick Wall * https://leetcode.com/problems/brick-wall/ * * There is a brick wall in front of you. * The wall is rectan 阅读全文
posted @ 2020-11-02 21:57 johnny_zhao 阅读(85) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_249 /** * 249. Group Shifted Strings * (Prime) * Given a string, we can "shift" each of its letter to its successive letter, for exam 阅读全文
posted @ 2020-11-02 16:40 johnny_zhao 阅读(98) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_154 /** * 154. Find Minimum in Rotated Sorted Array II * https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/ * * S 阅读全文
posted @ 2020-11-01 23:05 johnny_zhao 阅读(54) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1640 import java.util.* /** * 1640. Check Array Formation Through Concatenation * https://leetcode.com/problems/check-array-formation 阅读全文
posted @ 2020-11-01 21:46 johnny_zhao 阅读(183) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1641 /** * 1641. Count Sorted Vowel Strings * https://leetcode.com/problems/count-sorted-vowel-strings/ * * Given an integer n, retur 阅读全文
posted @ 2020-11-01 16:14 johnny_zhao 阅读(298) 评论(0) 推荐(0) 编辑

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