08 2014 档案

[leetcode]Single Number @ Python
摘要:原题地址:http://www.cnblogs.com/x1957/p/3373994.html题意:Given an array of integers, every element appearstwiceexcept for one. Find that single one.要求:线性时间复... 阅读全文

posted @ 2014-08-28 10:34 AIDasr 阅读(191) 评论(0) 推荐(0) 编辑

Unique Paths @ Python Leetcode EPI 17.4
摘要:Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a... 阅读全文

posted @ 2014-08-25 06:03 AIDasr 阅读(244) 评论(0) 推荐(0) 编辑

compute Binomial Coefficient or combinations with dynamic programming
摘要:The ProblemWrite a function that takes two parameters n and k and returns the value of Binomial Coefficient C(n, k).For example, your function should ... 阅读全文

posted @ 2014-08-23 12:17 AIDasr 阅读(318) 评论(0) 推荐(0) 编辑

Edit Distance (or Levenshtein Distance) python solution for leetcode EPI 17.2
摘要:https://oj.leetcode.com/problems/edit-distance/Edit DistanceGiven two wordsword1andword2, find the minimum number of steps required to convertword1tow... 阅读全文

posted @ 2014-08-23 09:34 AIDasr 阅读(1051) 评论(1) 推荐(0) 编辑

导航

< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10
点击右上角即可分享
微信分享提示