2019年5月23日

72. Edit Distance (JAVA)

摘要: Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permitt 阅读全文

posted @ 2019-05-23 18:02 joannae 阅读(182) 评论(0) 推荐(0) 编辑

69. Sqrt(x) (JAVA)

摘要: Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an in 阅读全文

posted @ 2019-05-23 15:08 joannae 阅读(168) 评论(0) 推荐(0) 编辑

68. Text Justification (JAVA)

摘要: Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justif 阅读全文

posted @ 2019-05-23 12:41 joannae 阅读(209) 评论(0) 推荐(0) 编辑

62. Unique Paths (JAVA)

摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文

posted @ 2019-05-23 11:40 joannae 阅读(244) 评论(0) 推荐(0) 编辑

导航