標籤:java leetcode 數組 題目There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log
標籤:java leetcode 數組 題目Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straight forward solution
標籤:leetcode 演算法 面試 【題目】Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such
標籤:leetcode 演算法 面試 【題目】Given a binary tree, return the preorder traversal of its nodes‘ values.For example:Given binary tree {1,#,2,3}, 1 2 / 3return [1,2,3].Note:&
標籤:並查集轉載請註明出處:http://blog.csdn.net/u012860063題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=4496D-CityProblem DescriptionLuxer is a really bad guy. He destroys everything he met.One day Luxer went to D-city. D-city has N D-points and M D-lines. Each