面试
v_v...
这个作者很懒,什么都没留下…
展开
-
235. Lowest Common Ancestor of a Binary Search Tree 树 面试试题---最低公共祖先
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined betw...原创 2018-09-08 14:44:49 · 169 阅读 · 0 评论 -
数组与字符串--寻找第一个无重复字符
原创 2018-09-08 15:51:04 · 204 阅读 · 0 评论 -
数组与字符串--删除特定字符
原创 2018-09-08 16:20:29 · 1510 阅读 · 0 评论 -
数组与字符串 -- 颠倒单词的出现顺序
原创 2018-09-10 10:57:17 · 442 阅读 · 0 评论 -
数组与字符串--- 整数/字符串之间的转换
sscanf函数: sscanf函数原型为int sscanf(const char *str, const char *format, ...)。将参数str的字符串根据参数format字符串来转换并格式化数据,转换后的结果存于对应的参数内。具体功能如下: (1)根据格式从字符串中提取数据。如从字符串中取出整数、浮点数和字符串等。 (2)取指定长度的字符串 ...原创 2018-09-10 12:11:08 · 1057 阅读 · 0 评论