上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 76 下一页
摘要: Given a square array of integers A, we want the minimum sum of a falling path through A. A falling path starts at any element in the first row, and ch 阅读全文
posted @ 2018-12-01 15:56 bernieloveslife 阅读(152) 评论(0) 推荐(0)
摘要: In a string S of lowercase letters, these letters form consecutive groups of the same character. For example, a string like S = "abbxxxxzyy" has the g 阅读全文
posted @ 2018-12-01 14:55 bernieloveslife 阅读(158) 评论(0) 推荐(0)
摘要: Given a non empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti 阅读全文
posted @ 2018-11-30 15:19 bernieloveslife 阅读(98) 评论(0) 推荐(0)
摘要: There are n different online courses numbered from 1 to n. Each course has some duration(course length) t and closed on dth day. A course should be ta 阅读全文
posted @ 2018-11-30 15:19 bernieloveslife 阅读(170) 评论(0) 推荐(0)
摘要: Given an integer, write a function to determine if it is a power of two. Example 1: Input: 1 Output: true Explanation: 20 = 1 Example 2: Input: 16 Out 阅读全文
posted @ 2018-11-30 15:19 bernieloveslife 阅读(90) 评论(0) 推荐(0)
摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2018-11-30 15:19 bernieloveslife 阅读(94) 评论(0) 推荐(0)
摘要: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident 阅读全文
posted @ 2018-11-30 15:18 bernieloveslife 阅读(90) 评论(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: I 阅读全文
posted @ 2018-11-30 15:18 bernieloveslife 阅读(74) 评论(0) 推荐(0)
摘要: Given an input string, reverse the string word by word. Example: Input: "the sky is blue", Output: "blue is sky the". Note: A word is defined as a seq 阅读全文
posted @ 2018-11-30 15:18 bernieloveslife 阅读(89) 评论(0) 推荐(0)
摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 A 2 B 3 C ... 26 Z 27 AA 28 AB ... Example 阅读全文
posted @ 2018-11-30 15:18 bernieloveslife 阅读(83) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 76 下一页