Mosquito


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

LeetCode--Remove Nth Node From End of List

发表于 2019-04-02 | 分类于 编程练习 |

题目描述:

Given a linked list, remove the n-th node from the end of list and return its head.

阅读全文 »

LeetCode--Letter Combinations of a Phone Number

发表于 2019-04-02 | 分类于 编程练习 |

题目描述:

Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent.

A mapping of digit to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters.

Letter-Combinations-of-a-Phone-Number

阅读全文 »

LeetCode--3Sum

发表于 2019-04-02 | 分类于 编程练习 |

题目描述:

Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.

note:

The solution set must not contain duplicate triplets.

阅读全文 »

LeetCode--Container With Most Water

发表于 2019-04-01 | 分类于 编程练习 |

题目描述:

Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.

Note: You may not slant the container and n is at least 2.

Container With Most Water

The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area of water (blue section) the container can contain is 49.

阅读全文 »

同程艺龙笔试--编程题

发表于 2019-03-27 | 分类于 笔试/面试 |

蚊子昨天参与了同程艺龙的笔试,投的是 Java 岗,然后有四种题型:判断题、单选题、填空题、编程题,因为除了编程题之外,其他的题型题目都太多了,蚊子记不住,所以就在这里记录一下编程题。

阅读全文 »

牛客网模拟笔试(三月场)

发表于 2019-03-24 | 分类于 笔试/面试 |

上周参加了牛客网的模拟笔试(三月场),后面因为有事情就没有做编程题目,想来挺后悔的。然后编程题的题解是牛客网提供的题解~目前还没有开放做题权限,所以蚊子也不能补题,嘤~

阅读全文 »

LeetCode--Regular Expression Matching

发表于 2019-03-21 | 分类于 编程练习 |

题目描述:

Given an input string (s) and a pattern (p), implement regular expression matching with support for '.'and '*'.

1
2
'.' Matches any single character.
'*' Matches zero or more of the preceding element.

The matching should cover the entire input string (not partial).

阅读全文 »

HashMap 原理

发表于 2019-03-20 | 分类于 Java基础 |

就面试总问到 HashMap,蚊子就总说的一知半解,就研究了一下(其实也没有面几家,基本都简历杀了,呜呜呜呜呜~)

~<待完成>~

阅读全文 »

LeetCode--Longest Palindromic Substring

发表于 2019-03-20 | 分类于 编程练习 |

题目描述:

Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.

阅读全文 »

LeetCode--Median of Two Sorted Arrays

发表于 2019-03-19 | 分类于 编程练习 |

题目描述:

There are two sorted arrays nums1 and nums2 of size m and n respectively.

Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).

You may assume nums1 and nums2 cannot be both empty.

阅读全文 »
1234
Mosquito

Mosquito

qwq

33 日志
8 分类
11 标签
友情链接
  • 树哥
  • 露露
  • 饼哥
  • 小a
  • 糖糖
© 2019 Mosquito
由 Hexo 强力驱动
|
主题 — NexT.Pisces v5.1.4