Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 221050

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

1 vote

Can I optimize two for loops that look for the closest zip code based on lat/lon?

There are many implementations of quad tree available as Python libraries. You can pick one of them. …
nkvns's user avatar
  • 389
1 vote
1 answer
693 views

Check if two triangles intersect

Input around use of python import operator def compute_direction(common_point, first_endpoint, second_endpoint): first_vector = tuple(map(operator.sub, first_endpoint, common_point)) second_vector …
nkvns's user avatar
  • 389
1 vote

Recursive quick sort in python

Code is clear and straight forward to read. However, there are two assumptions here It will be used with data types for which "<=" operation is defined. It is good idea to extract this part comparato …
nkvns's user avatar
  • 389
1 vote
1 answer
84 views

Update image pixels based on different criteria

Problem statement: Assume a high resolution (> 3000 x 3000) image is given as input. The image pixels can be classified into one of the three categories namely text, background and drawing. There is l …
nkvns's user avatar
  • 389
5 votes
3 answers
215 views

Detect loop in rectilinear path

Python-specific feedback. …
nkvns's user avatar
  • 389
3 votes
1 answer
841 views

Divide array into three disjoint sets with equal sum

Subset indices are [[0, 2, 3, 5], [1, 6, 7, 9], [8, 10, 11, 4]] Review ask Functional correctness Algorithm improvements Python usage …
nkvns's user avatar
  • 389