399 Evaluate Division

Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, return the answers. If the answer does not exist, return -1.0.

阅读更多

395 Longest Substring with At Least K Repeating Characters

Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than k times.

阅读更多

017 Letter Combinations of a Phone Number

Given a digit string, 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.

阅读更多

039 Combination Sum

Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.

阅读更多

474 Ones and Zeroes

In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue.

For now, suppose you are a dominator of m 0s and n 1s respectively. On the other hand, there is an array with strings consisting of only 0s and 1s.

阅读更多

找个实习:面经-II

微软苏州

微软苏州是用Skype For Business进行视频面试的【Skype For Business并不好用啊……】

面试之前,HR就承诺每个人都会有至少两轮的面试。但我并没有想到面试是上来直接白板写代码【捂脸】

阅读更多

找个实习:面经-I

不多说了,直接上面经。

百度

第一家接到面试的公司,电话面试。

面了两面技术面,有些问题两面都问到了,可见其对于该岗位是很重要的。

一面一开始,面试官先让我做一下自我介绍。由于自己提前对简历上的项目做了准备,自我介绍的时候还比较顺畅。听完自我介绍之后,面试官根据我的项目问了一些问题,譬如让我解释HMM和Viterbi算法。

阅读更多

473 Matchsticks to Square

Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one square by using up all those matchsticks. You should not break any stick, but you can link them up, and each matchstick must be used exactly one time.

阅读更多

找个实习:聊聊心路历程

今年春天的时候,我一直在寻找令自己满意的实习机会:一方面是想在找实习的过程中查漏补缺,提高自己;另一方面是给自己漫长的暑假,找一件有意义的事情来干。当然还有导火索——身边的同学不知道为啥,突然就一个个地接到了BAT各家公司的电话和通知,自己不禁也想试一试;其实找实习,很大程度上也是一种从众心理。

阅读更多

450 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.

阅读更多