随笔分类 - leetcode
摘要:标题:Gray Code通过率:32.4%难度:中等The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrep...
阅读全文
摘要:---恢复内容开始---标题:Letter Combinations of a Phone Number通过率:26.6%难度:中等Given a digit string, return all possible letter combinations that the number could ...
阅读全文
摘要:标题:Best Time to Buy and Sell Stock II通过率:37.3%难度:中等Say you have an array for which theithelement is the price of a given stock on dayi.Design an algor...
阅读全文
摘要:标题:Best Time to Buy and Sell Stock通过率:32%难度:中等Say you have an array for which theithelement is the price of a given stock on dayi.If you were only per...
阅读全文
摘要:标题:Spiral Matrix II通过率:31.3难度:中等Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You s...
阅读全文
摘要:标题:ZigZag Conversion通过率:22.7%难度:简单The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to displ...
阅读全文
摘要:标题:Add Binary通过率:25.1%难度:简单Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".本题主要就是模拟二进制去处理,跟上次做到...
阅读全文
摘要:标题:Count and Say通过率:25.8%难度:简单The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"...
阅读全文
摘要:标题:Valid Sudoku通过率:27.2%难度:简单Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where...
阅读全文
摘要:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a...
阅读全文
摘要:标题:Remove Nth Node From End of List通过率:28.5%难度:简答Given a linked list, remove thenthnode from the end of list and return its head.For example, Given ...
阅读全文
摘要:标题:Implement strStr()通过率:21.8%难度:简单Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of ...
阅读全文
摘要:标题:Pascal's Triangle II通过率:29.8%难度:简单Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you ...
阅读全文
摘要:标题:Valid Palindrome通过率:21.9%难度:简单Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For exam...
阅读全文
摘要:标题:Length of Last Word通过率:28.8%难度:简单Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last wor...
阅读全文
摘要:标题:Excel Sheet Column Title通过率:17.3%难度:简单Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1...
阅读全文
摘要:标题:Palindrome Number通过率:29.1%难度:简单Determine whether an integer is a palindrome. Do this without extra space. 这个题没有理解是因为单词不认识,然后就是不知道什么是回文数,翻译一下,百度一下才...
阅读全文
摘要:标题:Minimum Depth of Binary Tree通过率:29.2%难度:简单Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest p...
阅读全文
摘要:标题:Binary Tree Level Order Traversal II通过率:30.5%难度:简单Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from lef...
阅读全文
摘要:标题:Valid Parentheses通过率:27.7%难度:简单Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The b...
阅读全文

浙公网安备 33010602011771号