Skip to content Skip to sidebar Skip to footer
Showing posts with the label Data Structures

Longest Substring With Non-repeating Character

I am trying to solve the problem of finding the longest substring without a repeating character fro… Read more Longest Substring With Non-repeating Character

Is Linked List Always Slower Than Python List?

I'm working on Problem Solving with Algorithms and Data Structures and come across this questio… Read more Is Linked List Always Slower Than Python List?

How To Store The Total Withdrawal Amount For Each Category Object?

I have a Category class and there is a ledger attribute for each instance of this class. This ledge… Read more How To Store The Total Withdrawal Amount For Each Category Object?

What Are Some Viable Strategies To Detecting Duplicates In A Large Json File When You Need To Store The Duplicates?

I have an extremely large set of data stored in json that is too large to load in memory. The json … Read more What Are Some Viable Strategies To Detecting Duplicates In A Large Json File When You Need To Store The Duplicates?

Is There A Dictionary-like Datastructure That Would Allow Searches For 'key' And For 'value'

I need a structure for my little Python program to save a list of max 500 names with one number eac… Read more Is There A Dictionary-like Datastructure That Would Allow Searches For 'key' And For 'value'

How Does Python Manage A 'for' Loop Internally?

I'm trying to learn Python, and I started to play with some code: a = [3,4,5,6,7] for b in a: … Read more How Does Python Manage A 'for' Loop Internally?

Python: Storing Big Data Structures

I'm currently doing a project in python that uses dictionaries that are relatively big (around … Read more Python: Storing Big Data Structures

Python Get Random Key In A Dictionary In O(1)

I need a data structure that supports FAST insertion and deletion of (key, value) pairs, as well as… Read more Python Get Random Key In A Dictionary In O(1)