9 things to do when youโre stuck in coding:
๐ Read the error message carefully โ it often tells you the issue
โ๏ธ Rubber duck debugging โ explain your code out loud
๐งฉ Break the problem into smaller parts
๐ง Revisit the logic โ not just the syntax
โ Google the error or issue with specific keywords
๐ ๏ธ Use console logs or print statements to trace the flow
โธ๏ธ Take a short break โ come back with a fresh mind
๐ฅ Ask for help โ forums, friends, or mentors
๐ Check the official documentation or trusted sources
#coding #tips
๐ Read the error message carefully โ it often tells you the issue
โ๏ธ Rubber duck debugging โ explain your code out loud
๐งฉ Break the problem into smaller parts
๐ง Revisit the logic โ not just the syntax
โ Google the error or issue with specific keywords
๐ ๏ธ Use console logs or print statements to trace the flow
โธ๏ธ Take a short break โ come back with a fresh mind
๐ฅ Ask for help โ forums, friends, or mentors
๐ Check the official documentation or trusted sources
#coding #tips
๐7โค3
Important Sorting Algorithms-
Bubble Sort: Bubble Sort is the most basic sorting algorithm, and it works by repeatedly swapping adjacent elements if they are out of order.
Merge Sort: Merge sort is a sorting technique that uses the divide and conquer strategy.
Quicksort: Quicksort is a popular sorting algorithm that performs n log n comparisons on average when sorting an array of n elements. It is a more efficient and faster sorting algorithm.
Heap Sort: Heap sort works by visualizing the array elements as a special type of complete binary tree known as a heap.
Important Searching Algorithms-
Binary Search: Binary search employs the divide and conquer strategy, in which a sorted list is divided into two halves and the item is compared to the listโs middle element. If a match is found, the middle elementโs location is returned.
Breadth-First Search(BFS): Breadth-first search is a graph traversal algorithm that begins at the root node and explores all neighboring nodes.
Depth-First Search(DFS): The depth-first search (DFS) algorithm begins with the first node of the graph and proceeds to go deeper and deeper until we find the goal node or node with no children.
#coding
Bubble Sort: Bubble Sort is the most basic sorting algorithm, and it works by repeatedly swapping adjacent elements if they are out of order.
Merge Sort: Merge sort is a sorting technique that uses the divide and conquer strategy.
Quicksort: Quicksort is a popular sorting algorithm that performs n log n comparisons on average when sorting an array of n elements. It is a more efficient and faster sorting algorithm.
Heap Sort: Heap sort works by visualizing the array elements as a special type of complete binary tree known as a heap.
Important Searching Algorithms-
Binary Search: Binary search employs the divide and conquer strategy, in which a sorted list is divided into two halves and the item is compared to the listโs middle element. If a match is found, the middle elementโs location is returned.
Breadth-First Search(BFS): Breadth-first search is a graph traversal algorithm that begins at the root node and explores all neighboring nodes.
Depth-First Search(DFS): The depth-first search (DFS) algorithm begins with the first node of the graph and proceeds to go deeper and deeper until we find the goal node or node with no children.
#coding
โค1๐1
Cheat sheet on the basics of Python: ๐๐
basic syntax and language rules ๐
scalar types โ basic data types (int, float, bool, str, NoneType) ๐ข
datetime โ working with date and time ๐ โฐ
data structures โ Python data structures (list, tuple, dict, set) ๐
list โ mutable lists for storing data collections ๐
tuple โ immutable sequences of values ๐
dict (hash map) โ storing data in a key-value format ๐
set โ unique elements without order ๐
slicing โ obtaining parts of sequences through indices and step โ๏ธ
module/library โ connecting modules and libraries ๐
help functions โ using help() and dir() to explore the Python API ๐
#Python #Coding
basic syntax and language rules ๐
scalar types โ basic data types (int, float, bool, str, NoneType) ๐ข
datetime โ working with date and time ๐ โฐ
data structures โ Python data structures (list, tuple, dict, set) ๐
list โ mutable lists for storing data collections ๐
tuple โ immutable sequences of values ๐
dict (hash map) โ storing data in a key-value format ๐
set โ unique elements without order ๐
slicing โ obtaining parts of sequences through indices and step โ๏ธ
module/library โ connecting modules and libraries ๐
help functions โ using help() and dir() to explore the Python API ๐
#Python #Coding
โค12๐ฅ2๐1