上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F 阅读全文
posted @ 2018-02-06 22:25 于淼 阅读(146) 评论(0) 推荐(0) 编辑
摘要: (找了leetcode上最简单的一个题来找一下存在感) You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each char 阅读全文
posted @ 2018-02-05 17:43 于淼 阅读(454) 评论(2) 推荐(0) 编辑
摘要: Implement pow(x, n). Example 1: Example 2: 阅读全文
posted @ 2018-02-05 17:02 于淼 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the 阅读全文
posted @ 2018-02-05 16:59 于淼 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Leetcode59 Spiral Matrix II Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, 阅读全文
posted @ 2018-02-05 16:57 于淼 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 阅读全文
posted @ 2018-02-05 16:09 于淼 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: 阅读全文
posted @ 2018-02-04 21:56 于淼 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2 阅读全文
posted @ 2018-02-04 21:35 于淼 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After rem 阅读全文
posted @ 2018-02-04 11:31 于淼 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 8. String to Integer (atoi) Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challen 阅读全文
posted @ 2018-02-02 22:27 于淼 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页