摘要:
标题:Climbing Stairs通过率:34%难度:简单You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how ma... 阅读全文
摘要:
标题:Remove Duplicates from Sorted List通过率:34.5难度:简单Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example... 阅读全文
摘要:
标题:Roman to Integer通过率:34.1%难度:简单Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.这个题整体不是很难,就... 阅读全文
摘要:
标题:String to Integer (atoi)通过率:13.8难度:简单Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a... 阅读全文
摘要:
标题:Reverse Integer正确率:34.8%难度简单Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here... 阅读全文
摘要:
标题:Single Number II正确率:34%难度:中等Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm sh... 阅读全文
摘要:
标题:Same Tree通过率:42%难度简单Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are st... 阅读全文
摘要:
标题:Linked List Cycle II通过率30%难度中等看升级版前还是先看下Linked List Cycle I看完第一个版本对于第二个版本会有一定的帮助,先了解环的结构。然后看下面的图片:假设快慢指针交汇处为为分红圈那个,环的起始点为k,那么:1、快指针走的路程是慢指针走的两倍。2、慢... 阅读全文