摘要:
#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... 阅读全文