IamGroot

Blog of Chungen lchungen@qq.com


  • 首页

  • 分类

  • 归档

  • 标签

Leetcode-230 Kth Smallest Element in a BST

发表于 2020-08-07 | 分类于 Leetcode
Kth Smallest Element in a BST Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Follow up:What if the B ...
阅读全文 »

Leetcode-96 Unique Binary Search Trees

发表于 2020-08-07 | 分类于 Leetcode
Unique Binary Search Trees Given n, how many structurally unique BST’s (binary search trees) that store values 1 … n? Example 112345678910Input: 3Out ...
阅读全文 »

未命名

发表于 2020-05-28
读者-写者问题 读者优先 写者优先 读写者公平 12345678910111213141516171819202122232425262728293031int readcount=0;semaphore mutex=1, r=1, w=1;READER: P(r); ...
阅读全文 »

浏览器请求阿里云 ECS 出现 Provisional headers are shown

发表于 2020-05-18 | 分类于 WebServer
去阿里云官网找到“云服务器 ECS”、“网络与安全”、“安全组”、“配置规则” 手动添加端口范围。
阅读全文 »

Leetcode-739 Daily Temperatures

发表于 2020-04-16 | 分类于 Leetcode
Daily Temperatures Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to ...
阅读全文 »

Leetcode-406 Queue Reconstruction by Height

发表于 2020-04-15 | 分类于 Leetcode
Queue Reconstruction by Height Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), wh ...
阅读全文 »

Leetcode-338 Counting Bits

发表于 2020-04-14 | 分类于 Leetcode
Counting Bits Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary repres ...
阅读全文 »

Leetcode-581 Shortest Unsorted Continuous Subarray

发表于 2020-04-13 | 分类于 Leetcode
Shortest Unsorted Continuous Subarray Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascendin ...
阅读全文 »

Leetcode-234 Palindrome Linked List

发表于 2020-04-12 | 分类于 Leetcode
Palindrome Linked List Given a singly linked list, determine if it is a palindrome. Example 112Input: 1->2Output: false Example 212Input: 1->2- ...
阅读全文 »

Leetcode-145 Binary Tree Postorder Traversal

发表于 2020-04-11 | 分类于 Leetcode
Binary Tree Postorder Traversal Given a binary tree, return the postorder traversal of its nodes’ values. Follow up: Recursive solution is trivial, co ...
阅读全文 »
12…5
Chungen

Chungen

所谓自由,不是随心所欲,而是自我主宰!

46 日志
10 分类
11 标签
GitHub 博客园 简书 CSDN
© 2018 - 2020 Chungen
人次 次