摘要:
Implement an algorithm to determine if a string has all unique characters. Given "abc", return true. Given "aab", return false. public class Solution 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文