摘要: Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After removi 阅读全文
posted @ 2018-12-18 10:25 fatttcat 阅读(96) 评论(0) 推荐(0)
摘要: Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi 阅读全文
posted @ 2018-12-18 09:30 fatttcat 阅读(116) 评论(0) 推荐(0)
摘要: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa 阅读全文
posted @ 2018-12-18 07:54 fatttcat 阅读(90) 评论(0) 推荐(0)
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w 阅读全文
posted @ 2018-12-18 07:23 fatttcat 阅读(96) 评论(0) 推荐(0)
摘要: A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to convert the 阅读全文
posted @ 2018-12-18 07:08 fatttcat 阅读(167) 评论(0) 推荐(0)
摘要: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environment which cou 阅读全文
posted @ 2018-12-18 06:38 fatttcat 阅读(92) 评论(0) 推荐(0)
摘要: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which 阅读全文
posted @ 2018-12-18 04:47 fatttcat 阅读(105) 评论(0) 推荐(0)