Python binary search tree

Asked 1 years ago, Updated 1 years ago, 438 views

In this way, I want to create a program that uses Python binary search trees to store contacts, how should I do it?

python binary-search-tree

2022-12-23 13:00

1 Answers

Create a data frame with a name and phone number in each column.

Then proceed to sort the binary search tree (I don't know why, but maybe it's for sorting purposes?).

Finally, it turns a loop that puts the sorted data into the data frame one after another, and then stores the data frame in .csv or .xlsx format. (Pandas makes it convenient to store.)


2022-12-23 20:03

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.