摘要: 【Q19】 Given a linked list, remove the n-th node from the end of list and return its head. Example: Note: Given n will always be valid. Follow up: Coul 阅读全文
posted @ 2019-02-06 06:11 骑骡子的小灰机 阅读(116) 评论(0) 推荐(0)
摘要: 【Q13】 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two 阅读全文
posted @ 2019-02-04 03:14 骑骡子的小灰机 阅读(136) 评论(0) 推荐(0)
摘要: Ref:https://deerchao.net/tutorials/regex/regex.htm#greedyandlazy 1. 常用元字符 2.字符转义 查找元字符本身时,需要使用\来取消这些字符的特殊意义。因此,应该使用\.和\*。查找\本身时也得用\\. 3.重复 e.g: Window 阅读全文
posted @ 2019-02-02 21:30 骑骡子的小灰机 阅读(102) 评论(0) 推荐(0)
摘要: 【Q10】 Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover the e 阅读全文
posted @ 2019-02-02 21:13 骑骡子的小灰机 阅读(105) 评论(0) 推荐(0)
摘要: [Q7] 把数倒过来 Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: 【Q8】在给定列表中搜索数字,且数字必须在最开头位置 The function first 阅读全文
posted @ 2019-02-02 21:12 骑骡子的小灰机 阅读(114) 评论(0) 推荐(0)
摘要: [Q4] 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 complexi 阅读全文
posted @ 2019-02-01 06:51 骑骡子的小灰机 阅读(105) 评论(0) 推荐(0)
摘要: [Q1] Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would ha 阅读全文
posted @ 2019-01-31 05:28 骑骡子的小灰机 阅读(189) 评论(0) 推荐(0)
摘要: 面试问题总结。 问题:1. 自我介绍。2. 介绍了一下自己简历上的项目。3. SVM详细原理。4. Kmeans原理,何时停止迭代。 算法题:1. 一个随机整数产生器产生[1,5],如何设计一个产生[1,7]的随机整数产生器。解法:设k1,k2属于[1,5], 生成k3 = 5*(k1-1)+k2+ 阅读全文
posted @ 2019-01-29 18:40 骑骡子的小灰机 阅读(2234) 评论(0) 推荐(0)