自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

leetcode 解题思路

FLAG必经之路

  • 博客(10)
  • 收藏
  • 关注

原创 面经小结

最近我面试了不少公司,题目总结如下:Gusto: Phone interview:/*expected = { id: 9876, first_name: 'Tony', last_name: 'Soprano', account: {   bank_name: 'Bank Of America',   account_number: 12345

2016-11-25 03:56:17 870

原创 Third Maximum Number

Given anon-emptyarray of integers, return thethirdmaximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n).Example 1:Input: [3, 2,

2016-11-14 15:31:11 278

原创 Alien Dictionary

There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of words from the dictionary, wherewords are sorted lexicographica...

2016-11-14 14:13:38 593

原创 Sentence Screen Fitting

Given a rows x cols screen and a sentence represented by a list of words, find how many times the given sentence can be fitted on the screen.Note:A word cannot be split into two lines.The or

2016-11-13 08:45:26 1226

原创 Delete Node in a BST

Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of the BST.Basically, the deletion can be divided ...

2016-11-13 06:55:54 1282

原创 Sort Characters By Frequency

Given a string, sort it in decreasing order based on the frequency of characters.Example 1:Input:"tree"Output:"eert"Explanation:'e' appears twice while 'r' and 't' both appear once.So 'e

2016-11-13 06:41:33 715

原创 Isomorphic Strings

Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a character must be replaced with another ...

2016-11-07 08:24:58 239

原创 Thread VS Process

区别如下:1) Both process andThreadare independent path of execution but one process can have multiple Threads.一个process可以拥有很多thread,反之不行;2) Every process has its own memory space, execut

2016-11-06 08:29:16 618

原创 Blocking Queue

生产者和消费者的典型考题,用blocking queue来做。https://zhuanlan.zhihu.com/p/84647595讲解启发于:java 8 源代码:https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/Condition.htmlclass BoundedBlockingQue...

2016-11-06 07:46:14 880

原创 Count Palindrome in String

string 有多少palindrome substring。exp: 'aba' 返回4 , 'abba' 返回6public class CountPalindrome { public int countPalindrome(String str){ if(str == null || str.length() == 0) return 0; int count =

2016-11-01 11:34:38 353

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除