英文算法数据库面试

简介: 英文考察一: 请翻译下面这段中文,英文写在后面 对于经常要乘飞机进行长途旅行的人而言,在飞机上不能接收电子邮件或是办理公务是一大损失,不过几家航空公司近日承诺说,从明年开始,他们将利用卫星提供高速互联网接入服务,届时乘客在3.5万英尺的高空也可以通过笔记本电脑上网了。

英文考察一:

请翻译下面这段中文,英文写在后面

对于经常要乘飞机进行长途旅行的人而言,在飞机上不能接收电子邮件或是办理公务是一大损失,不过几家航空公司近日承诺说,从明年开始,他们将利用卫星提供高速互联网接入服务,届时乘客在3.5万英尺的高空也可以通过笔记本电脑上网了。

 

 

 

 

 

 

 

英文考察二

请翻译下面这段文字,中文写在后面:

 

For Chinese applicants, the first step in applying for a visa is to make an appointment by calling 65325305 or 65322228. The problem is that the two numbers are so busy that often they can't get through. Mr Bennett explained: "Since all embassies have to use the 6532 telephone prefix and the number of lines is limited, the US embassy is only allotted two lines for our appointment system. Insgroupsto solve the problem, we plan to work through a contractor. Contractors don't have to use the 6532 prefix, so they can be assigned more lines and hire lots of people to answer calls. Applicants will also be able to use faxes and the Internet to make appointments, which will greatly enhance flexibility and convenience. Since the contract has not been awarded yet, I can't say exactly when the new system will be operative - hopefully sometime in the fall."

 

 


算法题

 

1.         判断两个字符串中每个字符的个数是否相等。i.e.

“ABC”, “ACB” return true

“AABC”, “ABCD” return false

 

2Please write test cases for above as more as possible.

 

3Give 7 numbers, range from 0-13. The number of 0 is uncertain, other numbers can appear only once. 0 can be converted to any number. Please check whether or not it contains 5 continuous numbers

1,5,2,4,0,13,10  0->3 1,2,3,4,5,10,13 return true

1,5,2,0,0,13,10  0->3 0->4 1,2,3,4,5,10,13 return true

1,5,6,0,0,13,10  return false

 

4 Please write test cases for above as more as possible.


 

SQL Questions:

 

We need to develop a system for ## University. First we should make a table for teacher with information TeacherID, Address, Salary. Then we need to store courses’ information, e.g.  MajorID, Name, Credit. After that we have to store students’ information, StudentID, Name, and Address.

The ERD is as follow:

 

 


 

Question 1:

Please write a SQL statement which can retrieve the total credit of the students they grant. 

Sample output:

StudentID   Name                                               TotalCredit

----------- -------------------------------------------------- -----------

1           Alan Tsui                                          8          

2           Ronstar                                            9          

3           Steven                                             9          

 

 

Question 2:

Please write a SQL statement to show which major has the highest PASS rate and which teacher teaches the major. (Hints: get the top 1 major with count (passed student) and then join the teacher table)

Sample output:

TeacherID   TeacherName             MajorID       TotalPass       Name

----------- ----------------------- ------------- -------------- -----------------------

1           Professor Ronstar        2             3              Business Management

目录
相关文章
|
1月前
|
SQL 数据库 C#
C# .NET面试系列十一:数据库SQL查询(附建表语句)
#### 第1题 用一条 SQL 语句 查询出每门课都大于80 分的学生姓名 建表语句: ```sql create table tableA ( name varchar(10), kecheng varchar(10), fenshu int(11) ) DEFAULT CHARSET = 'utf8'; ``` 插入数据 ```sql insert into tableA values ('张三', '语文', 81); insert into tableA values ('张三', '数学', 75); insert into tableA values ('李四',
61 2
C# .NET面试系列十一:数据库SQL查询(附建表语句)
|
1月前
|
开发框架 算法 搜索推荐
C# .NET面试系列九:常见的算法
#### 1. 求质数 ```c# // 判断一个数是否为质数的方法 public static bool IsPrime(int number) { if (number < 2) { return false; } for (int i = 2; i <= Math.Sqrt(number); i++) { if (number % i == 0) { return false; } } return true; } class Progr
58 1
|
9天前
|
负载均衡 算法 应用服务中间件
面试题:Nginx有哪些负载均衡算法?Nginx位于七层网络结构中的哪一层?
字节跳动面试题:Nginx有哪些负载均衡算法?Nginx位于七层网络结构中的哪一层?
27 0
|
2月前
|
存储 NoSQL 关系型数据库
面试题18: NOSQL数据库
面试题18: NOSQL数据库
|
2月前
|
缓存 数据库 索引
面试题17: 数据库优化
面试题17: 数据库优化
|
1月前
|
存储 关系型数据库 MySQL
最全MySQL面试60题(含答案):存储引擎+数据库锁+索引+SQL优化等
最全MySQL面试60题(含答案):存储引擎+数据库锁+索引+SQL优化等
158 0
|
27天前
|
算法
覃超老师 算法面试通关40讲
无论是阿里巴巴、腾讯、百度这些国内一线互联网企业,还是 Google、Facebook、Airbnb 等硅谷知名互联网公司,在招聘工程师的过程中,对算法和数据结构能力的考察都是重中之重。本课程以帮助求职者在短时间内掌握面试中最常见的算法与数据结构相关知识点,学会面试中高频算法题目的分析思路,同时给大家从面试官的角度来分析算法题的解答技巧,从而更有效地提升求职者的面试通过率。
15 3
覃超老师 算法面试通关40讲
|
1月前
|
SQL 存储 关系型数据库
C# .NET面试系列十:数据库概念知识
#### 1. 为什么要一定要设置主键? 设置主键是数据库设计中的一个重要概念,有几个主要原因: 1、唯一性 ```c# 主键必须保证表中的每一行都有唯一的标识。这样可以避免数据冗余和不一致性。如果没有主键或者主键不唯一,就可能出现数据混乱或错误。 ``` 2、查询性能 ```c# 数据库系统通常会使用主键来加速数据检索。主键通常会被索引,这样可以更快速地找到特定行的数据,提高查询效率。 ``` 3、关联性 ```c# 主键常常用于建立表与表之间的关系。在关系数据库中,一个表的主键通常与其他表中的外键建立关联,这种关系对于数据的一致性和完整性非常重要。 ``` 4、数据完
131 1
C# .NET面试系列十:数据库概念知识
|
1月前
|
存储 算法
【数据结构与算法】【腾讯阿里链表面试题】算法题--链表易懂版讲解
【数据结构与算法】【腾讯阿里链表面试题】算法题--链表易懂版讲解
|
1月前
|
存储 机器学习/深度学习 算法
python常用算法,新手必会,面试必出
python常用算法,新手必会,面试必出
36 0