加载中
leetcode 172: Factorial Trailing Zeroes

Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. Credits: Special thanks to @ts for adding this prob...

2015/02/03 10:31
199
leetcode 171: Excel Sheet Column Number

Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example:     A -> 1     B -...

2015/02/03 10:30
826
leetcode 25: Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end sh...

2015/02/02 22:38
725
leetcode 2 Add Two Numbers 方法2

思路:凡是对链表的数字的操作,都可以考虑将这些数字转化为一个long或者一个数组

leetcode 2 Add Two Numbers 方法1

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers ...

leetcode 24 Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only c...

leetcode 179 Largest Number

Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The...

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部