摘要:
【已知先序、中序求后序排列】——字符串类型 " 1049 : 后序遍历" 【分析】:在注释里面。 include include include include include include include include include include include include inclu 阅读全文
摘要:
``` include include include include include include include include include include include include include include include include define debug() put 阅读全文
摘要:
交换元素使序列有序求最少交换次数的题有两类,第一种是只能交换相邻元素使序列有序,求最小交换次数,假如是是序列升序,只需要求逆序对数。第二种是可以交换任意两个位置的元素,使之有序,求最小交换次数,答案是数字的个数减去交换数字形成的环(置换环)的个数。比如 {5 1 3 2 4 7 6 8 } ,求将这 阅读全文