上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 49 下一页
摘要: Invert a binary tree. Trivia: This problem was inspired by this "original tweet" by "Max Howell" : Google: 90% of our engineers use the software you w 阅读全文
posted @ 2018-12-03 15:11 A-Little-Nut 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area. For example, given the following ma 阅读全文
posted @ 2018-12-03 15:09 A-Little-Nut 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文
posted @ 2018-12-03 15:08 A-Little-Nut 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Reverse a singly linked list. 阅读全文
posted @ 2018-12-03 15:07 A-Little-Nut 阅读(88) 评论(0) 推荐(0) 编辑
摘要: Note: This is an extension of "House Robber" . After robbing those houses on that street, the thief has found himself a new place for his thievery so 阅读全文
posted @ 2018-12-03 15:06 A-Little-Nut 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Write an algorithm to determine if a number is “happy”. A happy number is a number defined by the following process: Starting with any positive intege 阅读全文
posted @ 2018-12-03 15:04 A-Little-Nut 阅读(196) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2018-12-03 15:02 A-Little-Nut 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2018-12-02 22:24 A-Little-Nut 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Related to question "Excel Sheet Column Title" Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 阅读全文
posted @ 2018-12-02 22:23 A-Little-Nut 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
posted @ 2018-12-02 22:21 A-Little-Nut 阅读(139) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 49 下一页