
c++
文章平均质量分 68
NewCoder_BL
new coder, keep moving
展开
-
907. Sum of Subarray Minimums
leetcode, 单调栈,monotonic stack, stack, array, 数组转载 2022-06-13 16:16:37 · 204 阅读 · 0 评论 -
Callback in C++
Callback in C++非原创,转载自:https://stackoverflow.com/questions/2298242/callback-functions-in-c文章目录Callback in C++非原创,转载自:https://stackoverflow.com/questions/2298242/callback-functions-in-c@[TOC](文章目录)1. What are callables in C++(11)2. Function Pointer2.1 n转载 2022-03-21 14:54:56 · 294 阅读 · 0 评论 -
215. Kth Largest Element in an Array
快排,partition单独使用,leetcode原题原创 2016-07-01 16:10:35 · 256 阅读 · 0 评论 -
c/c++ 多维数组的动态分配
c/c++多维数组动态分配原创 2017-10-05 03:39:26 · 426 阅读 · 0 评论 -
c++: vector 简介
向量 vector 是一种对象实体, 能够容纳许多其他类型相同的元素, 因此又被称为容器。 与string相同, vector 同属于STL(Standard Template Library, 标准模板库)中的一种自定义的数据类型, 可以广义上认为是数组的增强版。在使用它时, 需要包含头文件 vector, #include<vector>vector 容器与数组相比其优点在于它能够根据需要随时自原创 2017-10-05 05:24:56 · 251 阅读 · 0 评论 -
sequential container overview(C++ 容器简介)
基本容器有: vector: flexible sized array, random access deque: double-ended queue, random access list: doubly linked list, bi-directional sequential access forward_list: singly linked list, sing原创 2017-10-06 05:10:28 · 244 阅读 · 0 评论 -
690. Employee Importance
Problem:You are given a data structure of employee information, which includes the employee’s unique id, his importance value and his direct subordinates’ id.For example, employee 1 is the leader of em原创 2017-10-13 11:01:37 · 199 阅读 · 0 评论 -
692. Top K Frequent Words
leetcode 692, top k frequent words, coded in c++原创 2017-10-13 23:53:59 · 370 阅读 · 0 评论 -
695. Max Area of Island
leetcode 695原创 2017-10-17 04:47:46 · 162 阅读 · 0 评论 -
About the reverse_iterator
reverse_iterator: 反向迭代器A copy of the original iterator (the base iterator) is kept internally and used to reflect the operations performed on the reverse_iterator: whenever the reverse_iterator is in...原创 2018-12-05 16:07:16 · 157 阅读 · 0 评论 -
hash table review
In hashing, a set of keys is stored in an array called hash table. Insertion, deletion, and finding are based on hash function. hash function maps each possible key with certain index to the hash原创 2017-10-09 12:34:29 · 339 阅读 · 0 评论 -
函数中的数组传递
C和C++中对数组在函数传递中的处理原创 2017-05-17 20:54:20 · 2425 阅读 · 0 评论 -
c和c++中的函数参数传递
值传递,引用传递,指针传递原创 2017-05-17 20:16:56 · 544 阅读 · 0 评论 -
heap and heap sort
heap定义,排序,堆排序c++源代码原创 2016-06-26 17:25:34 · 599 阅读 · 0 评论 -
STL笔记:map and pair
STL中最常用的pair和map功能解析原创 2016-06-29 18:51:44 · 489 阅读 · 0 评论 -
313. Super Ugly Number
找出第n个super ugly number;prime factor, priority queue;原创 2016-06-30 22:24:12 · 511 阅读 · 0 评论 -
147. Insertion Sort List
链表里的插入法排序,leetcode原题原创 2016-06-30 22:27:03 · 355 阅读 · 0 评论 -
88. merge sorted array
合并两个排序完成的序列,很多算法里的基本操作;leetcode原题原创 2016-07-01 16:29:19 · 237 阅读 · 0 评论 -
Sorting methods summary (1)
sorting algorithms原创 2016-06-15 21:54:14 · 460 阅读 · 0 评论 -
variables and types(变量和数据类型)
variable and types, from c++ primer原创 2016-07-14 22:04:39 · 514 阅读 · 0 评论 -
memset函数用法
memset用法介绍转载 2016-07-14 22:12:06 · 1143 阅读 · 0 评论 -
c++中的指针和引用
指针和引用的区别以及在处理常量时应该注意的事原创 2017-05-17 17:26:50 · 269 阅读 · 0 评论 -
heap with priority queues
use heap to implement priority queue, mainly max priority queue.原创 2016-06-26 23:36:34 · 416 阅读 · 0 评论