Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used.
Note:
1All letters...
admin
4年前 (2016-10-07) 1023℃ 0评论
0喜欢
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those le...
admin
4年前 (2016-10-07) 1241℃ 0评论
0喜欢
Find the sum of all left leaves in a given binary tree.
Example:
3
/ \
9 20
/ \
15 7
There are two left leaves in the bi...
admin
4年前 (2016-10-07) 1058℃ 0评论
0喜欢
Go
package main
import (
"fmt"
)
type Tree struct {
data string
left *Tree
right *T...
admin
4年前 (2016-10-07) 1015℃ 0评论
0喜欢
搜索二叉树
Go
package main
import (
"fmt"
)
type Tree struct {
data int
root *Tree
left ...
admin
4年前 (2016-10-07) 1076℃ 0评论
0喜欢