码不停Ti2001
码不停Ti2001
全部文章
LeetCode
# PAT乙级练习题(1)
# 团队设计天梯赛(2)
2020HBU天梯赛训练(48)
C++(284)
C语言(4)
Git(1)
idea(3)
java入门(17)
java编程规范(1)
java项目(1)
kinect(2)
LeetCode从零开始(3)
Linux(12)
MySQL(1)
pat(26)
SQL刷题(2)
XML(8)
信息安全(2)
分治算法(1)
剑指offer(2)
博客美化(5)
哈希表(6)
实习(3)
并查集(1)
微信小程序(5)
微机原理与汇编语言(6)
心得(3)
总结(23)
数学(1)
数据库(1)
数据结构(42)
数组(21)
整理(5)
日迹(7)
月刊(1)
服务器(7)
未完成(12)
未归档(63)
杂货铺(1)
树(10)
油管笔记(2)
牛客网(10)
玩转服务器(1)
环境配置(1)
生活杂碎(1)
知乎笔记(1)
笔记(6)
算法(2)
腾讯Techo开发者大会(2)
蓝桥杯(4)
视频笔记(1)
读书(4)
读书笔记(4)
趣味科普(1)
软件分享(2)
零碎知识点(2)
题解(5)
归档
标签
去牛客网
登录
/
注册
韩旭051 一个大二单身dog
好好学习,活着就好
全部文章
/ LeetCode
(共115篇)
【LeetCode】 哈希集 - 用法 C++
原来C++有已经写好的哈希集合, 柳神曾经提到过可以过超时的unordered_set 支持 auto迭代器 可以 insert count erase size clear empty #include <unordered_set> ...
2019-12-14
0
556
【LeetCode】 设计哈希映射
不使用任何内建的哈希表库设计一个哈希映射 具体地说,你的设计应该包含以下的功能 put(key, value):向哈希映射中插入(键,值)的数值对。如果键对应的值已经存在,更新这个值。 get(key):返回给定的键所对应的值,如果映射中不包含这个键,返回-1。 remove(key):如果映射...
2019-12-14
0
506
【LeetCode】231. 2的幂 位运算
给定一个整数,编写一个函数来判断它是否是 2 的幂次方。 示例 1: 输入: 1 输出: true 解释: 20 = 1 示例 2: 输入: 16 输出: true 解释: 24 = 16 示例 3: 输入: 218 输出: false 在真实的面试中遇到过这道题? 来源:力扣(LeetC...
2019-12-12
0
410
【LeetCode】292. Nim 游戏
你和你的朋友,两个人一起玩 Nim 游戏:桌子上有一堆石头,每次你们轮流拿掉 1 - 3 块石头。 拿掉最后一块石头的人就是获胜者。你作为先手。 你们是聪明人,每一步都是最优解。 编写一个函数,来判断你是否可以在给定石头数量的情况下赢得游戏。 示例: 输入: 4 输出: false 解释: ...
2019-12-12
0
523
【LeetCode】235. Lowest Common Ancestor of a Binary Search Tree 公共祖先
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedi...
2019-12-12
0
459
【LeetCode】437. Path Sum III树
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need...
2019-12-11
0
564
【LeetCode】977. Squares of a Sorted Array数组 双指针
Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order. E...
2019-12-11
0
551
【LeetCode】88. 合并两个有序数组 双指针
给定两个有序整数数组 nums1 和 nums2,将 nums2 合并到 nums1 中,使得 num1 成为一个有序数组。 说明: 初始化 nums1 和 nums2 的元素数量分别为 m 和 n。 你可以假设 nums1 有足够的空间(空间大小大于或等于 m + n)来保存 nums2 中的...
2019-12-11
0
454
【LeetCode】141. Linked List Cycle[快慢指针]
Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos which represents the pos...
2019-12-10
0
785
【LeetCode】23. Merge k Sorted Lists 分治
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->...
2019-12-09
0
438
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页