<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[肖冬禹要拿offer的博客]]></title><description><![CDATA[后端，机器学习，人工智能方向，欢迎大佬指导，内推~]]></description><link>https://blog.csdn.net/ASDJHO</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ASDJHO]]></copyright><item><title><![CDATA[Leetcode 9. Palindrome Number]]></title><link>https://blog.csdn.net/ASDJHO/article/details/119852553</link><guid>https://blog.csdn.net/ASDJHO/article/details/119852553</guid><author>ASDJHO</author><pubDate>Sun, 22 Aug 2021 14:49:05 +0800</pubDate><description><![CDATA[class Solution {
  public boolean isPalindrome(int x) {
    if (x &lt; 0) {
      return false;
    } else if (x == 0) {
      return true;
    } else {
      String num = String.valueOf(x);
      int start = 0;
   ...]]></description><category></category></item><item><title><![CDATA[Leetcode Reverse Integer]]></title><link>https://blog.csdn.net/ASDJHO/article/details/119852434</link><guid>https://blog.csdn.net/ASDJHO/article/details/119852434</guid><author>ASDJHO</author><pubDate>Sun, 22 Aug 2021 14:41:18 +0800</pubDate><description><![CDATA[class Solution {
  public int reverse(int x) {
    StringBuilder res = new StringBuilder();
    boolean flag = false;
    if (x &lt; 0) {
      flag = true;
      x *= -1;
    }
    if (x == 0) {
      return x;
  ...]]></description><category></category></item><item><title><![CDATA[Leetcode Two Sum]]></title><link>https://blog.csdn.net/ASDJHO/article/details/119851414</link><guid>https://blog.csdn.net/ASDJHO/article/details/119851414</guid><author>ASDJHO</author><pubDate>Sun, 22 Aug 2021 13:06:58 +0800</pubDate><description><![CDATA[public class TwoSum {
    public int[] twoSum(int[] nums, int target) {
        Map&lt;Integer, Integer&gt; mem = new HashMap&lt;&gt;();
        for (int i = 0; i &lt; nums.length; i++) {
            if (mem.containsKey(target - nums[i])) {
              .]]></description><category></category></item><item><title><![CDATA[拼多多面试跪经]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89392061</link><guid>https://blog.csdn.net/ASDJHO/article/details/89392061</guid><author>ASDJHO</author><pubDate>Fri, 19 Apr 2019 09:04:39 +0800</pubDate><description><![CDATA[学长帮忙内推了一波，然后做了笔试，通过，前面刚经过了第一轮面试。感觉是跪了。这里记录下，警示后人。。。。

一.笔试

第一问.
给定一个数组，任选两个元素求和，[a1,a2]和[a3,a4]，使得（a1+a2）-（a3+a4）差最小。


import itertools
import sys

def solution(N,nums):
    candidates=itertools.com...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【75. Sort Colors】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89276958</link><guid>https://blog.csdn.net/ASDJHO/article/details/89276958</guid><author>ASDJHO</author><pubDate>Sat, 13 Apr 2019 08:14:52 +0800</pubDate><description><![CDATA[Given an array withnobjects colored red, white or blue, sort themin-placeso that objects of the same color are adjacent, with the colors in the order red, white and blue.

Here, we will use the in...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【53. Maximum Subarray】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89179749</link><guid>https://blog.csdn.net/ASDJHO/article/details/89179749</guid><author>ASDJHO</author><pubDate>Wed, 10 Apr 2019 12:40:28 +0800</pubDate><description><![CDATA[Given an integer arraynums, find the contiguous subarray(containing at least one number) which has the largest sum and return its sum.

Example:


Input: [-2,1,-3,4,-1,2,1,-5,4],
Output: 6
Explanati...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【33. Search in Rotated Sorted Array】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89129642</link><guid>https://blog.csdn.net/ASDJHO/article/details/89129642</guid><author>ASDJHO</author><pubDate>Tue, 09 Apr 2019 07:17:26 +0800</pubDate><description><![CDATA[Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

(i.e.,[0,1,2,4,5,6,7]might become[4,5,6,7,0,1,2]).

You are given a target value to search. If found ...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【32. Longest Valid Parentheses】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89128317</link><guid>https://blog.csdn.net/ASDJHO/article/details/89128317</guid><author>ASDJHO</author><pubDate>Tue, 09 Apr 2019 06:27:31 +0800</pubDate><description><![CDATA[Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.

Example 1:


Input: "(()"
Output: 2
Explanation: The longest valid...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【583. Delete Operation for Two Strings】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89086268</link><guid>https://blog.csdn.net/ASDJHO/article/details/89086268</guid><author>ASDJHO</author><pubDate>Mon, 08 Apr 2019 13:25:18 +0800</pubDate><description><![CDATA[Given two wordsword1andword2, find the minimum number of steps required to makeword1andword2the same, where in each step you can delete one character in either string.

Example 1:


Input: "sea...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【28. Implement strStr()】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89085134</link><guid>https://blog.csdn.net/ASDJHO/article/details/89085134</guid><author>ASDJHO</author><pubDate>Mon, 08 Apr 2019 11:48:26 +0800</pubDate><description><![CDATA[ImplementstrStr().

Return the index of the first occurrence of needle in haystack, or-1if needle is not part of haystack.

Example 1:


Input: haystack = "hello", needle = "ll"
Output: 2


Example...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【12. Integer to Roman】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89064896</link><guid>https://blog.csdn.net/ASDJHO/article/details/89064896</guid><author>ASDJHO</author><pubDate>Sun, 07 Apr 2019 08:34:37 +0800</pubDate><description><![CDATA[Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM.


Symbol       Value
I             1
V             5
X             10
L             50
C             100
D           ...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【10. Regular Expression Matching】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89062526</link><guid>https://blog.csdn.net/ASDJHO/article/details/89062526</guid><author>ASDJHO</author><pubDate>Sun, 07 Apr 2019 00:31:33 +0800</pubDate><description><![CDATA[Given an input string (s) and a pattern (p), implement regular expression matching with support for'.'and'*'.


'.' Matches any single character.
'*' Matches zero or more of the preceding element.
...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【26. Remove Duplicates from Sorted Array】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89054087</link><guid>https://blog.csdn.net/ASDJHO/article/details/89054087</guid><author>ASDJHO</author><pubDate>Sat, 06 Apr 2019 12:20:31 +0800</pubDate><description><![CDATA[Given a sorted arraynums, remove the duplicatesin-placesuch that each element appear onlyonceand return the new length.

Do not allocate extra space for another array, you must do this bymodifyin...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【20. Valid Parentheses】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89051568</link><guid>https://blog.csdn.net/ASDJHO/article/details/89051568</guid><author>ASDJHO</author><pubDate>Sat, 06 Apr 2019 08:12:20 +0800</pubDate><description><![CDATA[Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.

Example:


Input:
[
 1-&gt;4-&gt;5,
 1-&gt;3-&gt;4,
 2-&gt;6
]
Output: 1-&gt;1-&gt;2-&gt;3-&gt;4-...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【21. Merge Two Sorted Lists】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89051507</link><guid>https://blog.csdn.net/ASDJHO/article/details/89051507</guid><author>ASDJHO</author><pubDate>Sat, 06 Apr 2019 07:47:32 +0800</pubDate><description><![CDATA[Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.

Example:


Input: 1-&gt;2-&gt;4, 1-&gt;3-&gt;4
Output: 1-...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【22.Generate Parentheses】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89051341</link><guid>https://blog.csdn.net/ASDJHO/article/details/89051341</guid><author>ASDJHO</author><pubDate>Sat, 06 Apr 2019 07:06:23 +0800</pubDate><description><![CDATA[Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.

For example, givenn= 3, a solution set is:


[
  "((()))",
  "(()())",
  "(())()",
  "()(())"...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【20. Valid Parentheses】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89049771</link><guid>https://blog.csdn.net/ASDJHO/article/details/89049771</guid><author>ASDJHO</author><pubDate>Sat, 06 Apr 2019 00:31:06 +0800</pubDate><description><![CDATA[Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.

An input string is valid if:

Open brackets must be closed by the same type of b...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【17. Letter Combinations of a Phone Number】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89042559</link><guid>https://blog.csdn.net/ASDJHO/article/details/89042559</guid><author>ASDJHO</author><pubDate>Fri, 05 Apr 2019 13:41:51 +0800</pubDate><description><![CDATA[Given a string containing digits from2-9inclusive, return all possible letter combinations that the number could represent.

A mapping of digit to letters (just like on the telephone buttons) is giv...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【15. 3Sum】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89041306</link><guid>https://blog.csdn.net/ASDJHO/article/details/89041306</guid><author>ASDJHO</author><pubDate>Fri, 05 Apr 2019 12:52:14 +0800</pubDate><description><![CDATA[Given an arraynumsofnintegers, are there elementsa,b,cinnumssuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.

Note:

The solution set must not conta...]]></description><category></category></item><item><title><![CDATA[LeetCode重点题系列之【42. Trapping Rain Water】]]></title><link>https://blog.csdn.net/ASDJHO/article/details/89039606</link><guid>https://blog.csdn.net/ASDJHO/article/details/89039606</guid><author>ASDJHO</author><pubDate>Fri, 05 Apr 2019 08:05:52 +0800</pubDate><description><![CDATA[Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.


The above elevation map is represented by array...]]></description><category></category></item></channel></rss>