![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
FalconJm
hi 各位好
展开
-
LeetCode Solution 03: 203Remove Linked List Elements
Remove Linked List Elements Remove all elements from a linked list of integers that have value val. Example Given: 1 –> 2 –> 6 –> 3 –> 4 –> 5 –> 6, val = 6 Return: 1 –> 2 –> 3 –> 4 –> 5原创 2015-05-28 15:46:29 · 339 阅读 · 0 评论 -
LeetCode Solution 04: 19Remove Nth Node From End of List
Remove Nth Node From End of List 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 remo原创 2015-05-28 16:35:47 · 396 阅读 · 0 评论 -
Leetcode solution 01:206 Reverse Linked List
Reverse Linked List Reverse a singly linked list. /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : va原创 2015-05-23 09:55:41 · 329 阅读 · 0 评论 -
Leetcode solution 02:205 Isomorphic Strings
Isomorphic Strings Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character mu原创 2015-05-23 11:33:25 · 355 阅读 · 0 评论 -
LeetCode Solution 05: 226Invert Binary Tree
Invert Binary Tree Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3 1 Trivia: This probl原创 2015-06-13 15:31:44 · 321 阅读 · 0 评论 -
LeetCode Solution 06: 217Invert Binary Tree
Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false原创 2015-06-13 15:46:59 · 376 阅读 · 0 评论