博客专栏  >  编程语言   >  走进LeetCode

走进LeetCode

由浅入深,from easy to hard,逐步探讨分析LeetCode上的每一道算法题,给出代码实现的同时,你能获取全新的解题思路。算法全部是用Java语言实现,希望每一篇文章都能给你带来帮助和启发,并不断提高自己。

关注
13 已关注
94篇博文
  • Leetcode_69_Sqrt(x)

    Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-ne...

    6天前 22:59
    10
  • Leetcode_155_Min Stack

    Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. p...

    6天前 22:27
    8
  • Leetcode_347_Top K Frequent Elements

    Given a non-empty array of integers, return the k most frequent elements. For example, Given [1,1,...

    2018-04-09 23:09
    20
  • Leetcode_454_4Sum II

    Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such t...

    2018-04-09 22:51
    18
  • Leetcode_371_Sum of Two Integers

    Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. ...

    2016-10-16 21:34
    802
  • Leetcode_389_Find the Difference

    Given two strings s and t which consist of only lowercase letters. String t is generated by random...

    2016-10-16 17:50
    602
  • Leetcode_350_Intersection of Two Arrays II

    Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2,...

    2016-08-22 21:13
    854
  • Leetcode_342_Power of Four

    Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example...

    2016-08-13 11:18
    692
  • Leetcode_292_Nim Game

    You are playing the following Nim Game with your friend: There is a heap of stones on the table, eac...

    2016-06-20 22:43
    2221
  • Leetcode_344_Reverse String

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/50768550 Write a function ...

    2016-06-15 22:27
    1993
  • Leetcode_299_Bulls and Cows

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/50768550 You are playing ...

    2016-02-29 21:49
    1454
  • Leetcode_278_First Bad Version

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/49719255 You are a pr...

    2015-11-08 16:22
    1574
  • Leetocde_290_Word Pattern

    http://blog.csdn.net/pistolove/article/details/49717803 Given a pattern and a string str, fi...

    2015-11-08 13:00
    1080
  • Leetcode_257_Binary Tree Paths

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/49432057 Given a binary ...

    2015-10-26 23:25
    1230
  • Leetcode_263_Ugly Number

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/49431329 Write a program t...

    2015-10-26 23:04
    1309
  • Leetocde_242_Valid Anagram

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48979767 Given two strin...

    2015-10-08 22:26
    2107
  • Leetcode_238_Product of Array Except Self

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48598939 Given an array of...

    2015-09-20 18:53
    1076
  • Leetcode_252_Implement Stack using Queues

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48598773 Implement the fo...

    2015-09-20 18:21
    980
  • Leetcode_232_Implement Queue using Stacks

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/48392363 Implement the foll...

    2015-09-12 11:01
    1542
  • Leetcode_231_Power of Two

    本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/47334243 Given an integer, w...

    2015-08-07 09:33
    841

img博客搬家
img撰写博客
img发布 Chat
img专家申请
img意见反馈
img返回顶部