leetcode
文章平均质量分 52
雪碧GOD
Moi,je ne suis qu'un programmeur.
展开
-
leetcode Add two number C++
Question:(Medium)You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two nu...原创 2018-10-14 19:23:01 · 171 阅读 · 0 评论 -
leetcode Remove Nth node from end of list C++
Question: Given a linked list, remove the n-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5, and n = 2.After removing the second node from the ...原创 2018-10-14 19:37:50 · 177 阅读 · 0 评论 -
leetcode Three sum(Medium) C++
Three sumGiven an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set must ...原创 2018-10-16 12:17:05 · 218 阅读 · 0 评论 -
Leetcode 刷题指南-树(1)C++
Leetcode树结构刷题总结原创 2019-07-24 22:43:36 · 501 阅读 · 0 评论 -
Leetcode 刷题指南-树(2)字典树 C++
作为 Leetcode 刷题指南-树 专题的第二章,本文主要介绍设计字符串搜索和存储结构的结构 字典树 以及相关的Leetcode题型。首先我们先定义作为字典树的节点的结构://字典树节点结构 struct TreeNode { TreeNode*child[26]; bool isword; TreeNode() { ...原创 2019-07-27 20:45:48 · 413 阅读 · 0 评论