leetcode周赛
糖琴心
这个作者很懒,什么都没留下…
展开
-
常用数据结构及其模板
最近为了面试,在自写一些常用数据结构。目前打算写的包括BST,list,string,heap,并查集,Trie树。 string类模板 #include<iostream> #include<ostream> #pragma warning disable:4996 using namespace std; class mystring { private: char* data; int size; public: mystring() { data = new c原创 2020-07-24 16:21:38 · 433 阅读 · 0 评论 -
leetcode189周赛
计数 class Solution { public: int busyStudent(vector<int>& startTime, vector<int>& endTime, int queryTime) { int n=startTime.size(); int ans=0; for(int i=0;i<n;i++){ if(queryTime>=startTime[i原创 2020-05-17 11:53:45 · 206 阅读 · 0 评论 -
leetcode周赛154总结
相关链接 https://leetcode-cn.com/contest/weekly-contest-154/ranking 5189. “气球” 的最大数量 题目难度Easy 给你一个字符串 text,你需要使用 text 中的字母来拼凑尽可能多的单词 “balloon”(气球)。 字符串 text 中的每个字母最多只能被使用一次。请你返回最多可以拼凑出多少个单词 “balloon”。 示例 ...原创 2019-09-15 16:24:42 · 147 阅读 · 0 评论