Skip to content

anupam-kumar-krishnan/21-Days-Competitive-Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

📍📍21-Days Competitive Programming📍📍

🔥🔥Competitive Programming and learning DS and Algorithm🔥🔥

Day 1📌

Linked List🤔

- A linked list is a linear data structure
- In linked list, elements are not stored in continous manner
- The elements in a linked list are linked using pointers

Types of Linked⬇

  • Singly Linked List
  • Doubly Linked List
  • Circular Linked List

Why we prefer linked list over arrays⬇

  • Dynamic nature in respect of size
  • Doing operations like updation/insertion/deletion are easy in linked list

Drawbacks of linked list✅

  • Random access is not allowed.
  • Extra memory space for a pointer is required.

Initialization of linked list✍

-  struct node
-  {
-    int data;
-    struct node *next;
-  };

Some brief about linked list📝

  • Linked list is made of nodes connected to each other
  • And Nodes consists of two blocks namely
    • Data
    • Pointer(also called 'next' while programming)
  • Data refers to the value at the data block of node
  • Pointer points to the next node in order to link every node with each other

Did three basic questions based on linked list on GFG👨‍💻

  • Count Node Of Linked List
  • Linked List Length Even or Odd
  • Reverse a Linked List

Day 2📌

Learned the basics of linked list

  • learned the opertions performed on linked list insertion/deletion/updation

Did three questions on GFG✅

  • Print linked list elements
  • Delete alternate node
  • Check if circular linked list

Day 3📌

Linked list start from creating the linked list to operations performed on linked list(Singly Linked List)

  • Creating Linked List
  • Displaying Linked List

Learned the operations performed in linked list

Insertion⚡

  • Insertion at first
  • Insertion at last
  • Insertion in between

Deletion⚡

  • Deletion at first
  • Deletion at last
  • Deletion in between

Others⚡

  • Count nodes
  • Remove duplicates

Day 4📌

Started learning some algorithms</>

Euclid Algo

+ A basic funda to find the GCD

Extended Euclid Algo

+ Extended Euclidean algorithm also finds integer coefficients x and y 

Practiced some questions based on the algorithm

  • Will practice some more questions in order to grasp the concept totally

Day 5📌

Started learning some algorithm✅

Sieve of Eratosthenes

+ The sieve of Eratosthenes is one of the most efficient ways to<br> find all primes smaller than n when n is smaller than 10 million 

Day 6📌

Solved some problems on GFG✅

  • Multiply array elements
  • Sum of array

Day 7📌

Solved some problems on GFG✅

  • Balanced array
  • Count the zeros

"Change📗 is the end result of all true learning" 🚶‍♂️🏃‍♂️ ― Leo Buscaglia📍

7 days streak💚💚💚💚

Day 8📌

Solved some problems on GFG✅

  • Minimum number to form the sum even
  • Number of occuerences

Day 9📌

Solved some problems on GFG✅

  • Check set Bits
  • How many X's
  • Sorted matrix

Day 10📌

Solved some problems on GFG✅

  • Equilibrium index of an array
  • Rotate by 90 Degree

Day 11📌

Solved problem on GFG✅

  • Swapping Pair make sum equal

Day 12📌

Solved problem on GFG✅

  • Maximum and Minimum Of Array Elements

Day 13📌

Solved problems on GFG✅

  • Anagram of String
  • Bubble Sort
  • Children Sum Parent
  • Sum of all substrings of a number

Day 14📌

Solved problems on GFG✅

  • Count the zeros
  • Factorials of large numbers
  • Star Elements

“Education📗📙📘📕 is not the filling of a pail, but the lighting⚡ of a fire🔥🔥.” – W.B. Yeats📍

14 days streak💙💙💙💙

Day 15📌

Solved problems on GFG✅

  • Remove Character
  • Repetitive Addition of digits
  • Student Record
  • URLify a given string
  • Reach a given score
  • Finding position
  • Evaluate postfix expression
  • Decode the pattern
  • Count number of Hops
  • Binary Array Sorting

Day 16📌

Solved problems on GFG✅

  • CamelCase Pattern Matching
  • Drive the car

Day 17📌

Solved problem on GFG✅

  • Knight Walk

Day 18📌

Solved problem on GFG✅

  • Fill array with 1's
  • Reorganize the array
  • You and your books

Day 19📌

Solved problem on GFG✅

  • Check if linked list is palindrome
  • Find the highest number
  • Good or Bad String

Day 20📌

Solved problems on GFG✅

  • Chocolate Station
  • Find the length of loop
  • Find the maximum number of handshakes
  • Two mirror trees

Day 21📌

Solved problems of GFG✅

  • Determine if two trees are identical
  • Extract Maximum
  • Roman Number To Integer
  • Meta String

“The key to success🚩🏃‍♂️ is consistency👨‍💻” - Zak Frazer📍

21 days streak💛💛💛💛 and it continues.......🏃‍♂️

Day 22📌

Solved some problems of GFG✅

  • K - Palindrome
  • Element with left side smaller and right side greater

Releases

No releases published

Packages

No packages published

Languages