摘要: Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. The matching should cover the entire in 阅读全文
posted @ 2018-07-14 20:31 小T在学习 阅读(515) 评论(1) 推荐(1) 编辑
摘要: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in sthat is a concat 阅读全文
posted @ 2018-07-13 23:28 小T在学习 阅读(175) 评论(0) 推荐(0) 编辑
摘要: You need to find the largest value in each row of a binary tree. Example: 基础中的基础,树的层次遍历/广度优先搜索。在搜索中存储每一行的最大值只不过是多加了两行代码。不应该是中等难度的题。 Java 阅读全文
posted @ 2018-07-13 08:59 小T在学习 阅读(183) 评论(0) 推荐(0) 编辑
摘要: A gene string can be represented by an 8-character long string, with choices from "A", "C", "G", "T". Suppose we need to investigate about a mutation 阅读全文
posted @ 2018-07-13 08:34 小T在学习 阅读(402) 评论(0) 推荐(0) 编辑
摘要: A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2018-07-12 18:03 小T在学习 阅读(453) 评论(0) 推荐(0) 编辑
摘要: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John 阅读全文
posted @ 2018-07-12 17:31 小T在学习 阅读(240) 评论(0) 推荐(0) 编辑
摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文
posted @ 2018-07-09 10:26 小T在学习 阅读(631) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are ar 阅读全文
posted @ 2018-07-09 10:03 小T在学习 阅读(295) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2018-07-09 09:56 小T在学习 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: E 阅读全文
posted @ 2018-07-08 21:11 小T在学习 阅读(670) 评论(0) 推荐(0) 编辑