
笔试面试
请叫我子鱼
这个作者很懒,什么都没留下…
展开
-
字符串逆转函数_INTEL2014笔
完成字符串逆转函数的实现 // 递归实现字符串反转char *reverse(char *str){if( !str ){return NULL;}int len = strlen(str);if( len > 1 ){char ctemp =str[0];str[0] = str[len-1];str[len-1] = '/0';// 最后一个字符在下次递归时不再处理reverse(s转载 2014-07-01 12:56:53 · 463 阅读 · 0 评论 -
递归实现数组求最大值_INTEL2014笔
递归实现数组求最大值,声明如下: Int getmax(inta[],int n) 输入a[],整数数组;n数组个数 返回值:数组的最大值 int getmax(int arr[],int n) { int a,b; if(1==n) return arr[0]; a=arr[0]; b=getmax(arr+1,n-1); r原创 2014-05-25 23:33:49 · 636 阅读 · 0 评论 -
完成字符串拷贝函数_INTEL2014笔
完成字符串拷贝函数的实现,声明如下: #include void strcopy(char *a,char *b) { while(*b!='\0') { *a++=*b++; } *a='\0'; }原创 2014-07-01 12:55:18 · 446 阅读 · 0 评论 -
计算日期间隔的天数_INTEL2014笔
给定两个日期,计算日期间隔的天数。日期的数据结构定义以及相关的辅助函数如下: Typedef struct Date{ Intyear; Intmonth; Intday; }Date; Bool isLeapYear(int year);//判断闰年的函数,可以直接使用 参考资料: http://zhi...转载 2014-07-01 12:58:21 · 641 阅读 · 0 评论 -
求1!+2!+3!+……+20!_中科邮2014笔
Please calculate the result 1!+2!+3!+……+20! The developers need to explain the potential issue if the use recursive way. Result: 268040729 Convert the result to string and move all '0' to the left原创 2014-08-01 14:55:49 · 695 阅读 · 0 评论 -
前端面试
前端面试之道 JS 基础知识点及常考面试题 原始(Primitive)类型 面试题:原始类型有哪几种?null 是对象嘛? 在 JS 中,存在着 6 种原始值,分别是: boolean null undefined number string symbol 首先原始类型存储的都是值,是没有函数可以调用的 对象(Object)类型 面试题:对象类型和原始类型的不同之处?函数参数是对象会...原创 2019-04-13 21:28:46 · 925 阅读 · 1 评论 -
Python面试
Python 面试 ==================== 电话面试 ==================== What? 什么是Python? 什么是Python自省? 什么是PEP? 什么是pickling和unpick? 什么是Python装饰器? 什么是Python的命名空间? 什么是字典推导式和列表推导式? Lambda函数是什么? *Argos,**warthogs参数是什么? 什...原创 2019-04-14 11:24:04 · 844 阅读 · 0 评论 -
算法面试
算法面试通关40讲 知识点 Array 理论 Access: O(1) Insert: 平均O(n) Delete: 平均O(n) Singly Linked List & Doubly Linked List 理论 space: O(n) prepend: O(1) append: O(1) lookup: O(n) insert: O(1) delete: O(...原创 2019-04-08 23:18:42 · 293 阅读 · 0 评论