摘要:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - 阅读全文
LeetCode 344. Reverse String (C++)
2017-08-31 00:34 by calvin2, 134 阅读, 0 推荐, 收藏,
摘要:Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 阅读全文
LeetCode 101 Symmetric Tree (C)
2016-10-16 22:58 by calvin2, 111 阅读, 0 推荐, 收藏,
摘要:题目: 101. Symmetric Tree QuestionEditorial Solution My Submissions 101. Symmetric Tree QuestionEditorial Solution My Submissions QuestionEditorial Solu 阅读全文
LeetCode 6 ZigZag Conversion (C)
2016-10-16 14:32 by calvin2, 197 阅读, 0 推荐, 收藏,
摘要:问题: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed f 阅读全文
LeetCode 27 Valid Parentheses (C)
2016-10-15 16:12 by calvin2, 117 阅读, 0 推荐, 收藏,
摘要:问题: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, 阅读全文
LeetCode 20 Valid Parentheses (C++)
2016-10-15 16:06 by calvin2, 310 阅读, 0 推荐, 收藏,
摘要:问题: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in 阅读全文
浙公网安备 33010602011771号