data-structures-algorithms-python icon indicating copy to clipboard operation
data-structures-algorithms-python copied to clipboard

This tutorial playlist covers data structures and algorithms in python. Every tutorial has theory behind data structure or an algorithm, BIG O Complexity analysis and exercises that you can practice o...

Results 65 data-structures-algorithms-python issues
Sort by recently updated
recently updated
newest added

The last 4 sorted elements from solution are: {'First Name': 'Raj', 'Last Name': 'Sharma'} {'First Name': 'Raj', 'Last Name': 'Nayyar'} {'First Name': 'Raj', 'Last Name': 'Thakur'} {'First Name': 'Suraj', 'Last...

Correct URL: https://github.com/codebasics/data-structures-algorithms-python/blob/master/algorithms/2_BubbleSort/bubble_sort_exercise_solution.py Current URL: https://github.com/codebasics/data-structures-algorithms-python/blob/master/algorithmsAlgorithms/2_BubbleSort/bubble_sort_exercise_solution.py

Array index starts with 0 but len(numver_list) is giving last index as 8 instead of seven by correcting this we don't need that extra if condition above. Please merge this...

We could have defined insert_values method in this way to create a linked list from a list.

Added new messages when calling remove by data or insert after data and the given data.

Updated the range function to iterate up to the max number and replaced modulo with bitwise and (&) for faster execution.

line 38 fails when there are no items in the queue, so while condition has to be modified for "True" to "not food_order_queue.is_empty". Please correct me if i am wrong

I think the solution may have issues, so I attached my solution. `def selection_sort(arr): size = len(arr) for i in range(size-1): min_index = i for j in range(min_index+1, size): if...