10 2020 档案

摘要:package LeetCode_654 /** * 654. Maximum Binary Tree * https://leetcode.com/problems/maximum-binary-tree/ * * Given an integer array with no duplicates 阅读全文
posted @ 2020-10-31 23:28 johnny_zhao 阅读(64) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_153 /** * 153. Find Minimum in Rotated Sorted Array https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/ Suppose an ar 阅读全文
posted @ 2020-10-31 16:07 johnny_zhao 阅读(53) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_994 import java.util.* /** * 994. Rotting Oranges * https://leetcode.com/problems/rotting-oranges/ * * In a given grid, each cell can 阅读全文
posted @ 2020-10-31 01:12 johnny_zhao 阅读(72) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_61 /** * 61. Rotate List * * https://leetcode.com/problems/rotate-list/ * * Given a linked list, rotate the list to the right by k pl 阅读全文
posted @ 2020-10-30 15:11 johnny_zhao 阅读(89) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1534 /** * 1534. Count Good Triplets * https://leetcode.com/problems/count-good-triplets/ * * Given an array of integers arr, and thr 阅读全文
posted @ 2020-10-30 10:53 johnny_zhao 阅读(67) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1480 /** * 1480. Running Sum of 1d Array * https://leetcode.com/problems/running-sum-of-1d-array/ * * Given an array nums. We define 阅读全文
posted @ 2020-10-30 10:21 johnny_zhao 阅读(91) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1033 /** * 1033. Moving Stones Until Consecutive * https://leetcode.com/problems/moving-stones-until-consecutive/ * * Three stones ar 阅读全文
posted @ 2020-10-29 22:08 johnny_zhao 阅读(80) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_3 /** * 3. Longest Substring Without Repeating Characters * https://leetcode.com/problems/longest-substring-without-repeating-charact 阅读全文
posted @ 2020-10-28 18:42 johnny_zhao 阅读(51) 评论(0) 推荐(0) 编辑
摘要:With the background restrictions introduced in Android Oreo, using alarm services is error prone and has a lot of drawbacks. Background Jobs introduce 阅读全文
posted @ 2020-10-28 16:10 johnny_zhao 阅读(69) 评论(0) 推荐(0) 编辑
摘要:Doze mode introduced in android marshmallow performs battery optimisations by keeping the device in sleep mode and forcing network restrictions on it. 阅读全文
posted @ 2020-10-28 15:40 johnny_zhao 阅读(96) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_621 import java.util.* import kotlin.collections.ArrayList import kotlin.collections.HashMap /*** * 621. Task Scheduler * https://lee 阅读全文
posted @ 2020-10-27 18:19 johnny_zhao 阅读(117) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_30 /** * 30. Substring with Concatenation of All Words * https://leetcode.com/problems/substring-with-concatenation-of-all-words/ * * 阅读全文
posted @ 2020-10-26 15:39 johnny_zhao 阅读(65) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_382 import java.util.* /** * 382. Linked List Random Node *https://leetcode.com/problems/linked-list-random-node/ * * Given a singly 阅读全文
posted @ 2020-10-25 14:28 johnny_zhao 阅读(54) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_717 /** * 717. 1-bit and 2-bit Characters * https://leetcode.com/problems/1-bit-and-2-bit-characters/ * * We have two special charact 阅读全文
posted @ 2020-10-24 11:34 johnny_zhao 阅读(71) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1389 /** * 1389. Create Target Array in the Given Order *https://leetcode.com/problems/create-target-array-in-the-given-order/ * * Gi 阅读全文
posted @ 2020-10-24 10:45 johnny_zhao 阅读(82) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_14 /** * 14. Longest Common Prefix * https://leetcode.com/problems/longest-common-prefix/ * * Write a function to find the longest co 阅读全文
posted @ 2020-10-22 21:09 johnny_zhao 阅读(42) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_752 import java.util.* import kotlin.collections.HashSet /** * 752. Open the Lock * https://leetcode.com/problems/open-the-lock/ * * 阅读全文
posted @ 2020-10-22 20:30 johnny_zhao 阅读(90) 评论(0) 推荐(0) 编辑
摘要:/** * This problem was asked by Yahoo. * Write a function that returns the bitwise AND of all integers between M and N, inclusive. * */ class Problem_ 阅读全文
posted @ 2020-10-22 15:10 johnny_zhao 阅读(44) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_149 /** * 149. Max Points on a Line * https://leetcode.com/problems/max-points-on-a-line/ * * Given n points on a 2D plane, find the 阅读全文
posted @ 2020-10-21 16:03 johnny_zhao 阅读(91) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_257 /** * 257. Binary Tree Paths * https://leetcode.com/problems/binary-tree-paths/ * Given a binary tree, return all root-to-leaf pa 阅读全文
posted @ 2020-10-21 12:38 johnny_zhao 阅读(85) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_6 /** * 6. ZigZag Conversion * https://leetcode.com/problems/zigzag-conversion/ * The string "PAYPALISHIRING" is written in a zigzag 阅读全文
posted @ 2020-10-20 17:35 johnny_zhao 阅读(78) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_347 import kotlin.collections.ArrayList import kotlin.collections.HashMap /** * 347. Top K Frequent Elements * https://leetcode.com/p 阅读全文
posted @ 2020-10-20 16:06 johnny_zhao 阅读(135) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_409 /** * 409. Longest Palindrome * https://leetcode.com/problems/longest-palindrome/ * * Given a string s which consists of lowercas 阅读全文
posted @ 2020-10-20 11:13 johnny_zhao 阅读(71) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_556 /** * 556. Next Greater Element III * https://leetcode.com/problems/next-greater-element-iii/description/ * Given a positive 32-b 阅读全文
posted @ 2020-10-19 21:11 johnny_zhao 阅读(58) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_186 /** * 186. Reverse Words in a String II * (Prime) * Given an input string , reverse the string word by word. Example: Input: ["t" 阅读全文
posted @ 2020-10-17 23:57 johnny_zhao 阅读(71) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_151 /** * 151. Reverse Words in a String * https://leetcode.com/problems/reverse-words-in-a-string/ * * Given an input string s, reve 阅读全文
posted @ 2020-10-17 00:56 johnny_zhao 阅读(75) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_345 /** * 345. Reverse Vowels of a String * https://leetcode.com/problems/reverse-vowels-of-a-string/ * * Write a function that takes 阅读全文
posted @ 2020-10-17 00:05 johnny_zhao 阅读(51) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_344 /** * 344. Reverse String * https://leetcode.com/problems/reverse-string/ * Write a function that reverses a string. The input st 阅读全文
posted @ 2020-10-16 23:42 johnny_zhao 阅读(77) 评论(0) 推荐(0) 编辑
摘要:import java.util.* /** * This problem was asked by Facebook. Given a string and a set of delimiters, reverse the words in the string while maintaining 阅读全文
posted @ 2020-10-16 11:48 johnny_zhao 阅读(175) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_540 /** * 540. Single Element in a Sorted Array * https://leetcode.com/problems/single-element-in-a-sorted-array/ * You are given a s 阅读全文
posted @ 2020-10-16 00:03 johnny_zhao 阅读(55) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_606 import LeetCode_1382.TreeNode /** * 606. Construct String from Binary Tree * https://leetcode.com/problems/construct-string-from- 阅读全文
posted @ 2020-10-15 13:35 johnny_zhao 阅读(55) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_536 import java.util.* /** * 536. Construct Binary Tree from String * (Prime) * You need to construct a binary tree from a string con 阅读全文
posted @ 2020-10-14 23:55 johnny_zhao 阅读(115) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_509 /** * 509. Fibonacci Number * https://leetcode.com/problems/fibonacci-number/ * * The Fibonacci numbers, commonly denoted F(n) fo 阅读全文
posted @ 2020-10-14 00:37 johnny_zhao 阅读(95) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_505 import java.util.* /** * 505. The Maze II * (Prime) * There is a ball in a maze with empty spaces and walls. * The ball can go th 阅读全文
posted @ 2020-10-13 23:54 johnny_zhao 阅读(83) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_498 import java.util.* /** * 498. Diagonal Traverse * https://leetcode.com/problems/diagonal-traverse/ * Given a matrix of M x N elem 阅读全文
posted @ 2020-10-13 14:14 johnny_zhao 阅读(64) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_493 import java.util.* /** * 493. Reverse Pairs * https://leetcode.com/problems/reverse-pairs/ * * Given an array nums, we call (i, j 阅读全文
posted @ 2020-10-12 20:38 johnny_zhao 阅读(98) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1021 import java.util.* /** * 1021. Remove Outermost Parentheses * https://leetcode.com/problems/remove-outermost-parentheses/ * A va 阅读全文
posted @ 2020-10-12 15:52 johnny_zhao 阅读(122) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_490 import java.util.* import kotlin.collections.HashSet /** * 490. The Maze * (Prime) * https://www.lintcode.com/problem/the-maze/de 阅读全文
posted @ 2020-10-11 23:48 johnny_zhao 阅读(133) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_489 /** * 489. Robot Room Cleaner * (Prime) * Given a robot cleaner in a room modeled as a grid. Each cell in the grid can be empty o 阅读全文
posted @ 2020-10-10 23:45 johnny_zhao 阅读(90) 评论(0) 推荐(0) 编辑
摘要:package _interview_question /** * we have 2 arrays in sorted order, no duplicates. we need find the max continuous length AP [arithmetic prog] in the 阅读全文
posted @ 2020-10-09 21:35 johnny_zhao 阅读(109) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1027 import kotlin.collections.HashMap /** * 1027. Longest Arithmetic Subsequence * https://leetcode.com/problems/longest-arithmetic- 阅读全文
posted @ 2020-10-08 16:53 johnny_zhao 阅读(116) 评论(0) 推荐(0) 编辑
摘要:/** *The Sieve of Eratosthenes is an algorithm used to generate all prime numbers smaller than N. * The method is to take increasingly larger prime nu 阅读全文
posted @ 2020-10-08 11:01 johnny_zhao 阅读(100) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1027 /** * 1027. Longest Arithmetic Subsequence * https://leetcode.com/problems/longest-arithmetic-subsequence/description/ * * Given 阅读全文
posted @ 2020-10-07 23:28 johnny_zhao 阅读(103) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_346 import java.util.* /** * 346. Moving Average from Data Stream * (Prime) * Given a stream of integers and a window size, calculate 阅读全文
posted @ 2020-10-07 21:38 johnny_zhao 阅读(111) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_413 /** * 413. Arithmetic Slices * https://leetcode.com/problems/arithmetic-slices/description/ * * A sequence of numbers is called a 阅读全文
posted @ 2020-10-06 22:03 johnny_zhao 阅读(115) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_414 /** * 414. Third Maximum Number * Given a non-empty array of integers, return the third maximum number in this array. * If it doe 阅读全文
posted @ 2020-10-06 19:19 johnny_zhao 阅读(124) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1472 import java.util.* /** * 1472. Design Browser History * https://leetcode.com/problems/design-browser-history/description/ * * Yo 阅读全文
posted @ 2020-10-06 16:21 johnny_zhao 阅读(155) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_410 /** * 410. Split Array Largest Sum * https://leetcode.com/problems/split-array-largest-sum/description/ * * Given an array nums w 阅读全文
posted @ 2020-10-06 15:50 johnny_zhao 阅读(132) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_1603 /** * 1603. Design Parking System * https://leetcode.com/problems/design-parking-system/description/ * */ class ParkingSystem(bi 阅读全文
posted @ 2020-10-05 23:06 johnny_zhao 阅读(139) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_402 import java.util.* /** * 402. Remove K Digits * https://leetcode.com/problems/remove-k-digits/description/ * * Given a non-negati 阅读全文
posted @ 2020-10-05 22:36 johnny_zhao 阅读(94) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_399 import java.util.* import kotlin.collections.HashMap import kotlin.collections.HashSet /** * 399. Evaluate Division * https://lee 阅读全文
posted @ 2020-10-05 19:29 johnny_zhao 阅读(195) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_395 /** * 395. Longest Substring with At Least K Repeating Characters * https://leetcode.com/problems/longest-substring-with-at-least 阅读全文
posted @ 2020-10-04 14:29 johnny_zhao 阅读(177) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_388 import java.util.* /** * 388. Longest Absolute File Path * https://leetcode.com/problems/longest-absolute-file-path/description/ 阅读全文
posted @ 2020-10-04 11:23 johnny_zhao 阅读(211) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_360 /** * 360. Sort Transformed Array * (Prime) * Given a sorted array of integers nums and integer values a, b and c. * Apply a quad 阅读全文
posted @ 2020-10-03 16:23 johnny_zhao 阅读(114) 评论(0) 推荐(0) 编辑
摘要:/** * This problem was asked by Google. You are given an array of arrays of integers, where each array corresponds to a row in a triangle of numbers. 阅读全文
posted @ 2020-10-03 15:19 johnny_zhao 阅读(76) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_317 import java.util.* /** * 317. Shortest Distance from All Buildings * (Prime) * You want to build a house on an empty land which r 阅读全文
posted @ 2020-10-02 15:16 johnny_zhao 阅读(134) 评论(0) 推荐(0) 编辑
摘要:/** * This problem was asked by Facebook. Given a function f, and N return a debounced f of N milliseconds. That is, as long as the debounced f contin 阅读全文
posted @ 2020-10-02 10:22 johnny_zhao 阅读(121) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_41 /** * 41. First Missing Positive * https://leetcode.com/problems/first-missing-positive/description/ * Given an unsorted integer a 阅读全文
posted @ 2020-10-01 16:58 johnny_zhao 阅读(82) 评论(0) 推荐(0) 编辑
摘要:package LeetCode_279 import java.util.* /** * 279. Perfect Squares * https://leetcode.com/problems/perfect-squares/description/ * * Given a positive i 阅读全文
posted @ 2020-10-01 11:14 johnny_zhao 阅读(143) 评论(0) 推荐(0) 编辑

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