摘要: Implement an algorithm to determine if a string has all unique characters. Given "abc", return true. Given "aab", return false. public class Solution 阅读全文
posted @ 2016-03-09 08:44 哥布林工程师 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Write a method anagram(s,t) to decide if two strings are anagrams or not. Given s="abcd", t="dcab", return true. public class Solution { /** * @param 阅读全文
posted @ 2016-03-09 08:38 哥布林工程师 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. Given the following trian 阅读全文
posted @ 2016-03-09 08:30 哥布林工程师 阅读(158) 评论(0) 推荐(0) 编辑