摘要:
代码如下: TestPointer.h struct ListNode { int m_nValue; ListNode *m_pNext; }; class TestPointer { public: ListNode* reverseListNode(ListNode *pHead);priva 阅读全文
摘要:
先附上代码: class Solution { public: string longestPalindrome(string s) { int count = s.size(); int max = 0; string result; int j; int curlen; for (int i = 阅读全文
摘要:
先贴代码,分递归回溯法和非递归回溯法 递归回溯法,代码如下: 非递归回溯法,代码如下: 指导思想: 走不通,就掉头; 检查合格才继续往下走;遇到不合格就是掉头; 能进则进,不能进则换,不能换则退; 解空间:一颗树空间 扩展规则:深度优先策略 设计过程:(1)确定问题的解空间;(2)确定结点的扩展规则 阅读全文
摘要:
步骤: 1) 在SecureCRT中, 选项 --> 会话选项 --> 终端 --> 仿真 -->终端项选"Xterm"并且勾选"ANSI 颜色"; 2) 连接远程Linux后,在Linux中使用find / -name .bashrc找到.bashrc(可以选当前用户),使用vi打开.bashrc 阅读全文