程序媛詹妮弗
终身学习
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2018-05-19 10:00 程序媛詹妮弗 阅读(258) 评论(0) 推荐(0) 编辑
摘要: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 阅读全文
posted @ 2018-05-19 08:06 程序媛詹妮弗 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2018-05-19 07:36 程序媛詹妮弗 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 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-05-19 07:19 程序媛詹妮弗 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover the entire  阅读全文
posted @ 2018-05-19 06:46 程序媛詹妮弗 阅读(190) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-05-19 05:49 程序媛詹妮弗 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Input: [0,1,0,3, 阅读全文
posted @ 2018-05-19 03:20 程序媛詹妮弗 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representati 阅读全文
posted @ 2018-05-18 03:03 程序媛詹妮弗 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. 题意: 给定s1和s2,判断给定的s3是不是s1和s2交织相错后可以生成的字符串 思路: 遇到字符串的子序列或匹配问题巴普洛夫狗流哈喇子实验般的 阅读全文
posted @ 2018-05-18 02:25 程序媛詹妮弗 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Given a string S and a string T, count the number of distinct subsequences of S which equals T. A subsequence of a string is a new string which is for 阅读全文
posted @ 2018-05-18 01:57 程序媛詹妮弗 阅读(150) 评论(0) 推荐(0) 编辑