随笔分类 -  LeetCode

摘要:参考: "LEETCODE 中的member access within null pointer of type 'struct ListNode'" 解决 leetcode 编译问题:Line x: member access within null pointer of type 'struc 阅读全文
posted @ 2018-07-08 17:39 Wasdns 阅读(23038) 评论(0) 推荐(0) 编辑
摘要:(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 阅读全文
posted @ 2018-06-29 15:43 Wasdns 阅读(249) 评论(0) 推荐(0) 编辑
摘要:Question: "Median of Two Sorted Arrays" My Answer in C int UnionTwoArrays(int nums1, int nums1Size, int nums2, int nums2Size) { // UnionTwoArrays int 阅读全文
posted @ 2017-02-04 15:47 Wasdns 阅读(149) 评论(0) 推荐(0) 编辑
摘要:"Problem" My Answer in C++ A.O(n^2) = TLE B.O(n) = Accept Details Better Solutions "Better Solutions" Feelings and Review 总的来说,本题难度一般(废话)。 1.首先要做的是理解题 阅读全文
posted @ 2017-02-03 18:24 Wasdns 阅读(356) 评论(0) 推荐(0) 编辑
摘要:Problem: "Add Two Numbers" My Answer(C) Test Environment "Better Solutions" Evaluating Details 建议大家参考Better Solutions中的解法,代码简洁又高效。 2017/1/30 阅读全文
posted @ 2017-01-30 18:40 Wasdns 阅读(171) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2017-01-28 18:40 Wasdns 阅读(158) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示