LeetCode

LeetCode刷题记录。约了小伙伴一起刷题玩，有不同语言写的，每道题都会有的不同思路。

0 已关注
9篇博文

ProblemWrite a program to find the node at which the intersection of two singly linked lists begins.

2015-07-22 18:31
552
• leetcode第231题：Power of Two

ProblemGiven an integer, write a function to determine if it is a power of two.题目给出一个整数，写一个函数判断它是否是2...

2015-07-22 18:34
631
• leetcode第225题：Implement Stacks using Queues

ProblemImplement the following operations of a stack using queues. push(x) – Push element x onto sta...

2015-07-26 17:38
445
• LeetCode：1. Two Sum

0X01 题目Question Two Sum Given an array of integers, return indices of the two numbers such th...

2016-08-03 14:14
346
• LeetCode：274. H-Index

0X01 题目 Given an array of citations (each citation is a non-negative integer) of a researcher, wri...

2016-08-03 14:15
231
• LeetCode：121. Best Time to Buy and Sell Stock

0X01 题目 Say you have an array for which the ith element is the price of a given stock on day i. ...

2016-08-03 14:15
267

0X01 题目 Reverse a singly linked list. Hint: A linked list can be reversed either iterati...

2016-08-05 12:45
347
• LeetCode：328. Odd Even Linked List

0X01 题目 Given a singly linked list, group all odd nodes together followed by the even nodes. Pleas...

2016-08-05 12:45
384
• LeetCode：237. Delete Node in a Linked List

0X01 题目 Write a function to delete a node (except the tail) in a singly linked list, given only ac...

2016-08-05 12:46
350