摘要: 原题链接在这里:https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/ 题目: Given n nodes labeled from 0 to n - 1 and a list of u 阅读全文
posted @ 2016-03-06 13:16 Dylan_Java_NYC 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/reverse-words-in-a-string-ii/ 题目: Given an input string , reverse the string word by word. Example: Input: ["t", 阅读全文
posted @ 2016-03-06 03:35 Dylan_Java_NYC 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/range-sum-query-2d-mutable/ 题目: Given a 2D matrix matrix, find the sum of the elements inside the rectangle defi 阅读全文
posted @ 2016-03-06 03:10 Dylan_Java_NYC 阅读(571) 评论(0) 推荐(0) 编辑