摘要: Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a ... 阅读全文
posted @ 2015-05-14 19:10 江湖小妞 阅读(572) 评论(0) 推荐(0)
摘要: 相似题目:Palindrome NumberValid PalinDromeReverseLinked ListPalindrome Linked List翻转单链表(要注意的是是否含有头结点):思路一:每次将第一个节点后的那个节点放到第一个位置。若无头结点,则额外需要一个指针记录首节点。代码:/*... 阅读全文
posted @ 2015-05-14 16:42 江湖小妞 阅读(927) 评论(0) 推荐(0)