L1-023 输出GPLT (20分) https://pintia.cn/problem-sets/994805046380707840/problems/994805113036587008 后面处理如何正确输出GPLT,且对应字母缺少则继续按顺序输出下一个存在的字母时不会处理,其实用一个whi ...
分类:
其他好文 时间:
2019-12-28 22:57:49
阅读次数:
73
70. Climbing Stairs(两数之和) 链接 https://leetcode cn.com/problems/climbing stairs 题目 假设你正在爬楼梯。需要 n?阶你才能到达楼顶。 每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢? 注意:给定 n 是 ...
分类:
其他好文 时间:
2019-12-28 21:02:40
阅读次数:
57
给定一个链表,两两交换其中相邻的节点,并返回交换后的链表。 你不能只是单纯的改变节点内部的值,而是需要实际的进行节点交换。 示例: 给定 1->2->3->4, 你应该返回 2->1->4->3. 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/ ...
分类:
其他好文 时间:
2019-12-28 20:39:10
阅读次数:
58
原题链接在这里:https://leetcode.com/problems/backspace-string-compare/ 题目: Given two strings S and T, return if they are equal when both are typed into empty ...
分类:
其他好文 时间:
2019-12-28 09:34:46
阅读次数:
77
L1-020 帅到没朋友 (20分) https://pintia.cn/problem-sets/994805046380707840/problems/994805117167976448 cout<<setw(5)<<setfill('0')<<right<<temp;//输出5位,右对齐,不 ...
分类:
其他好文 时间:
2019-12-28 09:23:24
阅读次数:
88
原题链接在这里:https://leetcode.com/problems/design-search-autocomplete-system/ 题目: Design a search autocomplete system for a search engine. Users may input ...
分类:
其他好文 时间:
2019-12-27 10:09:09
阅读次数:
106
原题链接在这里:https://leetcode.com/problems/rotated-digits/ 题目: X is a good number if after rotating each digit individually by 180 degrees, we get a valid ...
分类:
其他好文 时间:
2019-12-27 09:49:53
阅读次数:
54
原题链接在这里:https://leetcode.com/problems/longest-absolute-file-path/ 题目: Suppose we abstract our file system by a string in the following manner: The str ...
分类:
其他好文 时间:
2019-12-27 09:20:20
阅读次数:
60
链接:https://leetcode-cn.com/problems/search-in-rotated-sorted-array 假设按照升序排序的数组在预先未知的某个点上进行了旋转。 ( 例如,数组 [0,1,2,4,5,6,7] 可能变为 [4,5,6,7,0,1,2] )。 搜索一个给定的 ...
分类:
编程语言 时间:
2019-12-25 01:40:40
阅读次数:
81
链接:https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array 给定一个按照升序排列的整数数组 nums,和一个目标值 target。找出给定目标值在数组中的开始位置和结束位置。 ...
分类:
编程语言 时间:
2019-12-25 01:18:38
阅读次数:
104