Skip to content

Contain all resources and problems solved by me, all are from different platform

Notifications You must be signed in to change notification settings

vg11072001/Python-programming

Repository files navigation

Python Programming

Contain all resources, codes and problems solved be me of different platform

Python Topics

  • Introduction
  • Control flows - statements, instructions, or function calls
  • Data types - int, float, String, Tuple, List, Set and Dictionary
  • Functions
  • Itertools module
  • Comprehensions
  • Manipulating strings
  • String formatting
  • Regular expressions
  • Files and directory paths
  • Reading and writing files
  • Exception handling
  • Debugging
  • Args and Kwargs
  • Main: top level script
  • setup.py
  • Dataclasses
  • Virtual environments

ML python

Cheatsheets

Python Cheatsheet

Numpy Cheatsheet

Data Structures and Alogirthm

If input array is sorted then
- Binary search
- Two pointers

If asked for all permutations/subsets then
- Backtracking

If given a tree then
- DFS
- BFS

If given a graph then
- DFS
- BFS

If given a linked list then
- Two pointers

If recursion is banned then
- Stack

If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer

If asked for maximum/minimum subarray/subset/options then
- Dynamic programming

If asked for top/least K items then
- Heap
- QuickSelect

If asked for common strings then
- Map
- Trie

Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space

Full Guide: Click Here

Interesting articles on Python

About

Contain all resources and problems solved by me, all are from different platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published