摘要:
Given two strings representing two complex numbers. You need to return a string representing their multiplication. Note i2 = -1 according to the defin 阅读全文
posted @ 2017-10-18 13:54
daniel456
阅读(139)
评论(0)
推荐(0)
摘要:
Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a 阅读全文
posted @ 2017-10-18 13:46
daniel456
阅读(127)
评论(0)
推荐(0)
摘要:
Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assum 阅读全文
posted @ 2017-10-18 13:44
daniel456
阅读(150)
评论(0)
推荐(0)
摘要:
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". 题目含义:翻转字符串中的单词的顺序,单词内容不变 阅读全文
posted @ 2017-10-18 10:55
daniel456
阅读(109)
评论(0)
推荐(0)
摘要:
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135", return ["2 阅读全文
posted @ 2017-10-18 10:50
daniel456
阅读(149)
评论(0)
推荐(0)
摘要:
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t 阅读全文
posted @ 2017-10-18 10:18
daniel456
阅读(144)
评论(0)
推荐(0)
摘要:
Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c" 题目含义:简化unix路径 阅读全文
posted @ 2017-10-18 10:08
daniel456
阅读(106)
评论(0)
推荐(0)
摘要:
Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: Note: All inputs will be i 阅读全文
posted @ 2017-10-18 10:05
daniel456
阅读(99)
评论(0)
推荐(0)

浙公网安备 33010602011771号