#### Category : algorithm

I have a trouble problem. Briefly problem, I want to order gps point that must be near but same direction. Problem, I have gps information sorted by random id numbers. Inside these gps information, there is heading data that gives information about the direction of the vehicle. Heading, also known as Bearing, is its angle ..

I want to check if a substring exists in a list. But i can’t iterate through it because of it having booleans. I’m trying to convert booleans to str(booleans) but is that necessary? I’m sure there must be another efficient way without changing data def replace_falseTrue_as_strings(lst): for i in lst: if isinstance(i,list): for j in ..

i have flask api to get data from mongodb which uses pymongo. Lets say i have 40 million documents in my collection1, 30 million in my collection2 and 15 million in my collection3 so i can’t get them in once from each collection because it gives me timeout or request entity to large error. I ..

I am learning Recursion. While doing Palindrome Checking Using Recursion i’m facing some issue. If you can help me understand why the code is not behaving the way i think it should. The problem is highlighted with a yellow box. I think ans should revert back to its previous value of 1 but while printing ..

I have a video. On each frame of that video I have applied object detection algorithm to detect the objects. Once the objects are detected and I get the bounding boxes for each object, I want to estimate the distance of those detected objects from the camera at the time of shooting the video. Remember ..

I got this question an in an interview with a big tech company. where we got a n number of dictionaries of list of purchases nested within a list,(dictionary of list, nested within a list). I have to return the keys of the lists where the customers who have the same purchases in one list ..

There is a line of scattered people and we need to restore the order. We know: • How tall each of them are • The number of people who were in front of them who are taller. This information is contained in a set Person { int height; int tallerAheadCount;} I’ve tried sorting it multiple ..