摘要: 1 """ 2 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). 3 Example: 4 Inpu 阅读全文
posted @ 2020-02-26 23:33 yawenw 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. 3 Example 1: 4 Input: 5 [ 6 [1,1,1], 7 [1,0,1], 阅读全文
posted @ 2020-02-26 21:30 yawenw 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 You are climbing a stair case. It takes n steps to reach to the top. 3 Each time you can either climb 1 or 2 steps. In how many distinct ways 阅读全文
posted @ 2020-02-26 20:40 yawenw 阅读(127) 评论(0) 推荐(0) 编辑