2016年4月12日

8. String to Integer (atoi)

摘要: 8. String to Integer (atoi) Total Accepted: 97070 Total Submissions: 721266 Difficulty: Easy Implement atoi to convert a string to an integer. Hint: C 阅读全文

posted @ 2016-04-12 15:47 Alex0111 阅读(246) 评论(0) 推荐(0)

c 类型转换

摘要: double ←── float 高 ↑ long ↑ unsigned ↑ int ←── char,short 低 图中横向箭头表示必须的转换,如两个float型数参加运算,虽然它们类型相同,但仍要先转成double型再进行运算,结果亦为double型。 纵向箭头表示当运算符两边的运算数为不同类 阅读全文

posted @ 2016-04-12 14:33 Alex0111 阅读(144) 评论(0) 推荐(0)

100. Same Tree

摘要: 100. Same Tree Total Accepted: 122794 Total Submissions: 284606 Difficulty: Easy Given two binary trees, write a function to check if they are equal o 阅读全文

posted @ 2016-04-12 10:37 Alex0111 阅读(163) 评论(0) 推荐(0)

导航