10 2014 档案
摘要:#include#includeusing namespace std;/*** 找到链表中的倒数第k个节点*///定义结构体typedef struct Node{ int val; Node* next;} Node;//创建链表Node* createNode(){ int ...
阅读全文
摘要:#include#includeusing namespace std;//定义结构体typedef struct Node{ int val; Node* next;} Node;void swap(Node* a,Node* b){ int tmp = a->val; a...
阅读全文
摘要:public class BiSearchChangeMode1{ public static void main(String args[]){ double[] a = {1,2.5,2.5,2.5,2.5,2.5,3,4,4,4,5}; int len = a...
阅读全文
摘要:1 #include 2 #include "stdlib.h" 3 #include 4 #include 5 #include 6 using namespace std; 7 8 //节点定义 9 typedef struct biNode{ 10 char va...
阅读全文