顺序查找k值 . 顺序查找:即遍历整个线性表 时间复杂度为O( n ),空间复杂度O( 1 ) . . 将第0个元素设为待检索的值,从后往前遍历,不需要判断 i 是否越界 . #include <iostream> #include <vector> using namespace std; template <class type> class Item { public: Item(type value):key(value){ } type get_key(