prasad.hybris
BAN USER
Questions (3)
Reputation 80
- 0of 0 votes
AnswersTable: Customers
- prasad.hybris in United States
id | name
1|alice
2|bob
3|carol
Table: Orders
id | customer_id | content
1|1|House
2|2|car
3|2|dog
4|10|cow
please write a query which returns all of the invalid orders (where invalid means their customer_id does not have an associated customer)
4|10|cow| Report Duplicate | Flag | PURGE
Google Technical Support Engineer Database - 1of 1 vote
AnswersSuppose you have a list of tasks which need to be executed. Some of these tasks have dependencies which must be executed before they are. Please provide a method which, when given a list of tasks, will provide a valid ordering in return.
- prasad.hybris in United States
Example:
Input: [ A, B, C, D ]
A <- B, C
B <- C, D
D <- C
Return: [ C, D, B, A ]| Report Duplicate | Flag | PURGE
Google Technical Support Engineer Trees and Graphs
Page:
1
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.