amazon笔试题
来源:互联网 发布:poi数据 编辑:程序博客网 时间:2024/04/30 11:14
1.判断一年是否为闰年的方法
2.非递归实现exists方法
template <class T>
class BinaryTree{
protected:
T* _data;
BinaryTree<T> * _left;
BinaryTree<T> * _right;
};
template <class T>
class BST:public BinaryTree<T>{
public:
virtual bool exists(const T& item> const;
};
3.找到下面的bugs
#include<stdio.h>
#include<malloc.h>
void foo(int a ,char*b)
{
b=(char *)malloc(64);
snprintf(b,"you are %d years old!/n",a);
}
int main (void)
{
char *f;
foo(23,f);
printf("%s/n",b);
}
4.Design a subway traffic control system.What objects/classes/modules would you best use for this
purpose?Please draw diagrams and write up class definitions to better illustrate your
design.Write anything additional to clarify your design.
2.非递归实现exists方法
template <class T>
class BinaryTree{
protected:
T* _data;
BinaryTree<T> * _left;
BinaryTree<T> * _right;
};
template <class T>
class BST:public BinaryTree<T>{
public:
virtual bool exists(const T& item> const;
};
3.找到下面的bugs
#include<stdio.h>
#include<malloc.h>
void foo(int a ,char*b)
{
b=(char *)malloc(64);
snprintf(b,"you are %d years old!/n",a);
}
int main (void)
{
char *f;
foo(23,f);
printf("%s/n",b);
}
4.Design a subway traffic control system.What objects/classes/modules would you best use for this
purpose?Please draw diagrams and write up class definitions to better illustrate your
design.Write anything additional to clarify your design.
- amazon笔试题
- 亚马逊(amazon)笔试题
- amazon 3道笔试题
- amazon的几道笔试题
- 名企笔试:Amazon笔试题(Count the elements)
- amazon 笔试: 购物统计
- Amazon 笔试 :公共祖先 问题
- Amazon(亚马逊)2014届秋季校园招聘在线笔试题一
- Amazon第二题
- Amazon第一题
- amazon题代码
- Amazon
- 根据栈的入栈序列和出栈序列,打印push和pop的顺序-Amazon笔试题
- 亚马逊在线技术笔试(Amazon Hiring Campus 2013 - Final 6)
- 2013amazon网上测试题
- [Amazon笔试]求比数n大的最小回文数的字符串形式
- 笔试题
- 笔试题
- android设置背景平铺
- iphone游戏开发 资料索引 cocos2d, OpenGL ES
- Web开发中的弹出对话框控件介绍
- 批处理中变量延迟不起作用
- 判断浏览器类型JS(网上找到的)
- amazon笔试题
- 复数运算符的重载
- centos下如何设置命令的别名
- 如何更改主框架的显示
- 使用ssh 在shell显示-bash-4.1$ 不显示路径解决方法
- maxnumber
- 关于LINUX系统概念的上的格式化
- Cassandra部署策略
- c++中bool数组与bitset,vector<bool>的使用与占用空间大小对比