IncredibleThings

导航

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 28 下一页

2018年5月20日 #

LeetCode - Spiral Matrix

摘要: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Example 2: 复杂度 时间 O(NM) 空间 O(1) 思路 阅读全文

posted @ 2018-05-20 00:48 IncredibleThings 阅读(115) 评论(0) 推荐(0) 编辑

2018年5月17日 #

Sort An Unsorted Stack

摘要: Given a stack of integers, sort it in ascending order using another temporary stack. Examples: 阅读全文

posted @ 2018-05-17 09:22 IncredibleThings 阅读(118) 评论(0) 推荐(0) 编辑

2018年5月11日 #

LeetCode - Sum of Left Leaves

摘要: Find the sum of all left leaves in a given binary tree. Example: 阅读全文

posted @ 2018-05-11 11:23 IncredibleThings 阅读(95) 评论(0) 推荐(0) 编辑

2018年4月29日 #

LeetCode-Microsoft-Add Two Numbers II

摘要: You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai 阅读全文

posted @ 2018-04-29 22:43 IncredibleThings 阅读(181) 评论(0) 推荐(0) 编辑

LeetCode-Microsoft-Populating Next Right Pointers in Each Node

摘要: Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its ne 阅读全文

posted @ 2018-04-29 12:04 IncredibleThings 阅读(125) 评论(0) 推荐(0) 编辑

LeetCode-Microsoft-Clone Graph

摘要: Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled 阅读全文

posted @ 2018-04-29 11:16 IncredibleThings 阅读(94) 评论(0) 推荐(0) 编辑

LeetCode-Microsoft-Remove K Digits

摘要: Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l 阅读全文

posted @ 2018-04-29 10:14 IncredibleThings 阅读(113) 评论(0) 推荐(0) 编辑

LeetCode-Reverse Words in a String

摘要: Given an input string, reverse the string word by word. Example: Input: "the sky is blue", Output: "blue is sky the". Notes: A word is defined as a se 阅读全文

posted @ 2018-04-29 08:30 IncredibleThings 阅读(116) 评论(0) 推荐(0) 编辑

Microsoft-Excel Sheet Column Number

摘要: Given a column title as appear in an Excel sheet, return its corresponding column number. For example: Example 1: Example 2: Example 3: 阅读全文

posted @ 2018-04-29 04:08 IncredibleThings 阅读(129) 评论(0) 推荐(0) 编辑

Microsoft - Union Two Sorted List with Distinct Value

摘要: Union Two Sorted List with Distinct Value Given X = { 10, 12, 16, 20 } & Y = {12, 18, 20, 22} We would like to find out the union of two sorted arrays 阅读全文

posted @ 2018-04-29 00:43 IncredibleThings 阅读(156) 评论(0) 推荐(0) 编辑

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 28 下一页