随笔分类 - LeetCode
摘要:参考: "LEETCODE 中的member access within null pointer of type 'struct ListNode'" 解决 leetcode 编译问题:Line x: member access within null pointer of type 'struc
阅读全文
摘要:(1) Linked List: "2 add two numbers" , "2.cpp" "19 remove nth node from end of list" ,TBD "21 merge two sorted lists" ,TBD "83 remove duplicates from
阅读全文
摘要:Question: "Median of Two Sorted Arrays" My Answer in C int UnionTwoArrays(int nums1, int nums1Size, int nums2, int nums2Size) { // UnionTwoArrays int
阅读全文
摘要:"Problem" My Answer in C++ A.O(n^2) = TLE B.O(n) = Accept Details Better Solutions "Better Solutions" Feelings and Review 总的来说,本题难度一般(废话)。 1.首先要做的是理解题
阅读全文
摘要:Problem: "Add Two Numbers" My Answer(C) Test Environment "Better Solutions" Evaluating Details 建议大家参考Better Solutions中的解法,代码简洁又高效。 2017/1/30
阅读全文
摘要:Questions: "Two Sum" My Answer: / Function: Copynums Explanation: The function is used to judging whether a number is in nums or not. / int copynums(i
阅读全文