Those are the coding problems solutions backup
find how many duplicated target number in the array
Compare the string in the format like abc111
, abc222
.
public List<Driver> find(List<Driver> drivers, Customer c, index k)
,
find k cars near the custromer.
Plus one to a integer in a string format. The integer could be any one. A negative one or one overflows.
Seperate the long string into several strings when you detect the ,
in
the long string, but you cannot split it when it's like '',''
.
There are cars, people, drive ways and buldings in the 2-dimentional matrix.
The cars can only be on the drive ways and will be blocked by the buldings.
Try to determine how many people can be picked up by the car in k
steps.
Provide the intersection and union of two arrays of intervals.
Given a vector and a target, find all the pairs in the vector which have the difference equals tto target.
How to calculate the factorial for a very large number.
Write a wrapper function to limit the recall rate of the function.
Implement a stack based on linked list.
There is a list of prices. Now try to discount the prices, based on the rules that each price subtract the first same or less price after them.
There are several spots and each spot has a beauty score. Try to design a visit path which can has the largest beauty score.