摘要:
题目: A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a numb 阅读全文
posted @ 2017-03-03 07:41
panini
阅读(170)
评论(0)
推荐(0)
摘要:
题目: Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. For example,Assume that wor 阅读全文
posted @ 2017-03-03 07:17
panini
阅读(134)
评论(0)
推荐(0)
摘要:
题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", 阅读全文
posted @ 2017-03-03 06:58
panini
阅读(135)
评论(0)
推荐(0)
摘要:
题目: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 阅读全文
posted @ 2017-03-03 05:54
panini
阅读(113)
评论(0)
推荐(0)
摘要:
题目: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikip 阅读全文
posted @ 2017-03-03 04:52
panini
阅读(160)
评论(0)
推荐(0)
浙公网安备 33010602011771号