Awesome AngularJs,awesomeangularjs A list of awesome AngularJs services, directives, utilities and resources. 資料來自:https://github.com/gianarb/awesome-angularjsTable of contents:Seed ProjectsUser ManagerMobileWeb ServiceAsset
[LeetCode]Minimum Path Sum,leetcodeminimumGiven a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at any point
Binary Tree Level Order Traversal II--LeetCode,addbinaryleetcode 題目:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example:Given
[LeetCode]Sort Colors,leetcodecolorsGiven an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the integers 0, 1, and 2 to
BestCoder Round #36(Strange Class-類比),Strange ClassAccepts: 519Submissions: 1749Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)問題描述在Vivid的學校裡,有一個奇怪的班級(SC).在SC裡,這些學生的名字非常奇怪。他們的名字形式是這樣的a n b n c
[LeetCode]Majority Element,leetcodemajority題意: 找出一個數組中的主要元素,主要元素為出現次數大於[n/2]的元, 當然最笨的方法就是暴力,沒式不知道時間行不行思路1: 遍曆數組,統計每個元素出現的次數,用HashMap統計每個元素出現的次數 時間複雜度O(N),空間複雜度 O(N)代碼1:public class Solution { public int majorityElement(int[] num) { int
(山東省第一屆省賽 I 題) SDUTOJ 2159 Ivan comes again! (線段樹+set),sdutoj2159 題目地址:SDUT 2159 這題的資料很水。。幾乎所有人都是水過去的。。網上也沒找到正解,全是水過去的。於是我來第一發正解23333。 首先,可以想到的是先離線下來,然後對行離散化,然後對於每行的所有列用set去存,那麼怎麼去找最小的行有大於給出列的列數呢?這時候線段樹就可以登場了,用線段樹來維護每一行的出現的最大列,