Python Interview Questions

6,381 python interview questions shared by candidates

create an insertion mechanism for linked list of unique elements (letters from A to Z), where the elements to insert are given as pairs separated by an arrow '->', which indicates the order. First letter and the letter that points to e.g A -> F, Print the linked list after each insertion A -> F : A->F G -> C : A->F G->C F -> G : A->F->G->C B->A : B->A->F->G->C
avatar

Python Software Developer

Interviewed at Oracle

3.5
Apr 19, 2016

create an insertion mechanism for linked list of unique elements (letters from A to Z), where the elements to insert are given as pairs separated by an arrow '->', which indicates the order. First letter and the letter that points to e.g A -> F, Print the linked list after each insertion A -> F : A->F G -> C : A->F G->C F -> G : A->F->G->C B->A : B->A->F->G->C

Q: Given a list of coordinates (x,y), count the number of distinct rectangles that can be drawn by connecting any 4 points. Q: Given a circle, draw n straight lines within the circle. Each line is drawn by randomly selecting 2 points on the circle's circumference and connecting them. Find the expected number of intersections between all the inscribed lines.
avatar

Python Algorithm Developer Internship

Interviewed at Hudson River Trading

4.1
Feb 26, 2024

Q: Given a list of coordinates (x,y), count the number of distinct rectangles that can be drawn by connecting any 4 points. Q: Given a circle, draw n straight lines within the circle. Each line is drawn by randomly selecting 2 points on the circle's circumference and connecting them. Find the expected number of intersections between all the inscribed lines.

Viewing 6221 - 6230 interview questions

Glassdoor has 6,381 interview questions and reports from Python interviews. Prepare for your interview. Get hired. Love your job.