
leetcode
文章平均质量分 57
aaasy
热爱生活的程序媛!
展开
-
leetcode-Excel Sheet Column Title
说好的每天一刷,果然做不到,拖延症+懒癌晚期。好吧,趁着有时间赶快刷一题。 Problem: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -原创 2016-04-01 21:35:41 · 214 阅读 · 0 评论 -
leetcode - ugly number, ugly number2, super ugly number
ugly number的题目原创 2016-04-21 20:15:06 · 245 阅读 · 0 评论 -
leetcode - Majority Element
Problem: (1)Majority Element 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 array is non-empty原创 2016-05-05 21:54:12 · 229 阅读 · 0 评论 -
leetcode- Number of 1 bits, power of two, power of three
leetcode- Number of 1 bits, power of two, power of three原创 2016-04-23 22:13:10 · 324 阅读 · 0 评论 -
leetcode - Contains Duplicate
Problem: 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 array, and it should return false if every e原创 2016-04-14 21:50:45 · 244 阅读 · 0 评论 -
leetcode - roman to integer & integer to roman
leetcode - roman to integer & integer to roman原创 2016-04-13 10:30:06 · 215 阅读 · 0 评论 -
leetcode- Delete Node in a Linked List&Remove Linked List Elements
Problem: Delete Note in a LinkedList & Remove LinkedList Elements原创 2016-04-09 17:05:01 · 246 阅读 · 0 评论 -
Leetcode-Add Digits
本人正在努力加入浩浩荡荡的程序员组织,目前定位在数据挖掘与自然语言处理两块。但是无论如何,得先从leetcode做起。所以做过的题目,有空就往博客上丢,希望与大家一 同进步! Problem: Given a non-negative integer num, repeatedly add all its digits until the result has only one di原创 2016-03-26 15:41:52 · 305 阅读 · 0 评论 -
leetcode - Valid Anagram
今天心情好,多刷一题,大家不要嫌弃我 Question: Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return true. s = "rat", t = "ca原创 2016-04-01 22:30:07 · 188 阅读 · 0 评论 -
leetcode-Pascal's Triangle(I、II)
Problems: (1)Given numRows, generate the first numRows of Pascal’s triangle.For example, given numRows = 5Return: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,原创 2016-06-06 08:10:23 · 253 阅读 · 0 评论