Learn Bubble Sort from @ThePrimeagen. It accepts an array as a parameter, iterates through the entire array using a loop, and within this loop, it iterates again with a nested loop. If the current value is greater than the next value, it swaps them. #BubbleSort #nishantcoder

NishantWeb3's tweet image. Learn Bubble Sort from @ThePrimeagen.

It accepts an array as a parameter, iterates through the entire array using a loop, and within this loop, it iterates again with a nested loop. If the current value is greater than the next value, it swaps them. #BubbleSort #nishantcoder

Linear search is like scanning a book page by page to find a specific word. It goes through each element in a list one by one until the target is found. It's simple but not efficient for large datasets. #LinearSearch #SearchingAlgorithms #nishantcoder #dsa #ThePrimeagen #coding

NishantWeb3's tweet image. Linear search is like scanning a book page by page to find a specific word. It goes through each element in a list one by one until the target is found. It's simple but not efficient for large datasets. #LinearSearch #SearchingAlgorithms #nishantcoder #dsa #ThePrimeagen #coding

Binary Search is a way to find something (like a number) in a sorted list or array. It works by repeatedly dividing the list in half and quickly narrowing it down to the desired item. #BinarySearch #nishantcoder #searching #algorithm #ThePrimeagen #CodingJourney #100DaysOfCode

NishantWeb3's tweet image. Binary Search is a  way to find something (like a number) in a sorted list or array. It works by repeatedly dividing the list in half and quickly narrowing it down to the desired item. #BinarySearch #nishantcoder #searching #algorithm #ThePrimeagen #CodingJourney #100DaysOfCode

Queue 👉 First In First Out [FIFO] 👈 Here, a #queue data structure is implemented in #typescript in the form of a linked list. First, we create the structure of a node type. Then, we create a class ... #nishantcoder #LearnInPublic #CodingJourney #dsa 1/5 🧵

NishantWeb3's tweet image. Queue 👉 First In First Out [FIFO] 👈

Here, a #queue data structure is implemented in #typescript in the form of a linked list.

First, we create the structure of a node type. Then, we create a class ... #nishantcoder #LearnInPublic #CodingJourney #dsa
1/5 🧵

Stack : Last In First Out [LIFO] here, we first create type of node. we create #Stack class in #typescript inside this declare the private and public property name head and length that can store the value of type Node<T> #nishantcoder #LearnInPublic #DSAWithNishant 1/4 🧵

NishantWeb3's tweet image. Stack :  Last In First Out [LIFO]
 here, we first create type of node. we create #Stack class in #typescript inside this declare the private  and public property name head and length that can store the value of type Node&amp;lt;T&amp;gt; 
#nishantcoder #LearnInPublic #DSAWithNishant
1/4 🧵

Pop Method: Removing from the top. Condition, If the length is equal to 0, we first store the head, and then the head will be set to undefined. If the length is not equal to zero, we update the head with the previous node of the current head. #nishantcoder #LearnInPublic 3/4🧵


both the head and tail with the created node. If the tail exists, the tail's next node will be the current node, and then the tail will be updated to this new node. In deque: We remove an element from the front. Here, if the head is undefined ... #nishantcoder #dsa 4/5🧵


In enqueue: We add an element from the last or the back (tail) node. So, here, we first create a node, and its value is updated by the item coming from the parameter. Now, we check the condition: if the tail is undefined, then we update ... #nishantcoder #LearnInPublic 3/5 🧵


it will return undefined; otherwise, we store the head in a constant variable, and then the head will be updated to head's next. In peek: We get the element before removing it from the front. #nishantcoder #LearnInPublic #ThePrimeagen 5/5 🧵


where we define public properties for length, and private properties for head and tail. We create a constructor where we initialize the initial values. Additionally, we create methods for enqueue, deque, and peek. #nishantcoder #LearnInPublic #dsa #100DaysOfCode 2/5🧵


Thanks a ton, @FrancescoCiull4 ! Your expertise has opened new doors for me in containerization. #Docker #LearningJourney #NishantCoder

NishantWeb3's tweet image. Thanks a ton, @FrancescoCiull4   ! Your expertise has opened new doors for me in containerization. #Docker #LearningJourney #NishantCoder

Pop Method: Removing from the top. Condition, If the length is equal to 0, we first store the head, and then the head will be set to undefined. If the length is not equal to zero, we update the head with the previous node of the current head. #nishantcoder #LearnInPublic 3/4🧵


Stack : Last In First Out [LIFO] here, we first create type of node. we create #Stack class in #typescript inside this declare the private and public property name head and length that can store the value of type Node<T> #nishantcoder #LearnInPublic #DSAWithNishant 1/4 🧵

NishantWeb3's tweet image. Stack :  Last In First Out [LIFO]
 here, we first create type of node. we create #Stack class in #typescript inside this declare the private  and public property name head and length that can store the value of type Node&amp;lt;T&amp;gt; 
#nishantcoder #LearnInPublic #DSAWithNishant
1/4 🧵

it will return undefined; otherwise, we store the head in a constant variable, and then the head will be updated to head's next. In peek: We get the element before removing it from the front. #nishantcoder #LearnInPublic #ThePrimeagen 5/5 🧵


both the head and tail with the created node. If the tail exists, the tail's next node will be the current node, and then the tail will be updated to this new node. In deque: We remove an element from the front. Here, if the head is undefined ... #nishantcoder #dsa 4/5🧵


In enqueue: We add an element from the last or the back (tail) node. So, here, we first create a node, and its value is updated by the item coming from the parameter. Now, we check the condition: if the tail is undefined, then we update ... #nishantcoder #LearnInPublic 3/5 🧵


where we define public properties for length, and private properties for head and tail. We create a constructor where we initialize the initial values. Additionally, we create methods for enqueue, deque, and peek. #nishantcoder #LearnInPublic #dsa #100DaysOfCode 2/5🧵


Queue 👉 First In First Out [FIFO] 👈 Here, a #queue data structure is implemented in #typescript in the form of a linked list. First, we create the structure of a node type. Then, we create a class ... #nishantcoder #LearnInPublic #CodingJourney #dsa 1/5 🧵

NishantWeb3's tweet image. Queue 👉 First In First Out [FIFO] 👈

Here, a #queue data structure is implemented in #typescript in the form of a linked list.

First, we create the structure of a node type. Then, we create a class ... #nishantcoder #LearnInPublic #CodingJourney #dsa
1/5 🧵

Learn Bubble Sort from @ThePrimeagen. It accepts an array as a parameter, iterates through the entire array using a loop, and within this loop, it iterates again with a nested loop. If the current value is greater than the next value, it swaps them. #BubbleSort #nishantcoder

NishantWeb3's tweet image. Learn Bubble Sort from @ThePrimeagen.

It accepts an array as a parameter, iterates through the entire array using a loop, and within this loop, it iterates again with a nested loop. If the current value is greater than the next value, it swaps them. #BubbleSort #nishantcoder

Binary Search is a way to find something (like a number) in a sorted list or array. It works by repeatedly dividing the list in half and quickly narrowing it down to the desired item. #BinarySearch #nishantcoder #searching #algorithm #ThePrimeagen #CodingJourney #100DaysOfCode

NishantWeb3's tweet image. Binary Search is a  way to find something (like a number) in a sorted list or array. It works by repeatedly dividing the list in half and quickly narrowing it down to the desired item. #BinarySearch #nishantcoder #searching #algorithm #ThePrimeagen #CodingJourney #100DaysOfCode

Linear search is like scanning a book page by page to find a specific word. It goes through each element in a list one by one until the target is found. It's simple but not efficient for large datasets. #LinearSearch #SearchingAlgorithms #nishantcoder #dsa #ThePrimeagen #coding

NishantWeb3's tweet image. Linear search is like scanning a book page by page to find a specific word. It goes through each element in a list one by one until the target is found. It&apos;s simple but not efficient for large datasets. #LinearSearch #SearchingAlgorithms #nishantcoder #dsa #ThePrimeagen #coding

Stack : Last In First Out [LIFO] here, we first create type of node. we create #Stack class in #typescript inside this declare the private and public property name head and length that can store the value of type Node<T> #nishantcoder #LearnInPublic #DSAWithNishant 1/4 🧵

NishantWeb3's tweet image. Stack :  Last In First Out [LIFO]
 here, we first create type of node. we create #Stack class in #typescript inside this declare the private  and public property name head and length that can store the value of type Node&amp;lt;T&amp;gt; 
#nishantcoder #LearnInPublic #DSAWithNishant
1/4 🧵

Learn Bubble Sort from @ThePrimeagen. It accepts an array as a parameter, iterates through the entire array using a loop, and within this loop, it iterates again with a nested loop. If the current value is greater than the next value, it swaps them. #BubbleSort #nishantcoder

NishantWeb3's tweet image. Learn Bubble Sort from @ThePrimeagen.

It accepts an array as a parameter, iterates through the entire array using a loop, and within this loop, it iterates again with a nested loop. If the current value is greater than the next value, it swaps them. #BubbleSort #nishantcoder

Linear search is like scanning a book page by page to find a specific word. It goes through each element in a list one by one until the target is found. It's simple but not efficient for large datasets. #LinearSearch #SearchingAlgorithms #nishantcoder #dsa #ThePrimeagen #coding

NishantWeb3's tweet image. Linear search is like scanning a book page by page to find a specific word. It goes through each element in a list one by one until the target is found. It&apos;s simple but not efficient for large datasets. #LinearSearch #SearchingAlgorithms #nishantcoder #dsa #ThePrimeagen #coding

Binary Search is a way to find something (like a number) in a sorted list or array. It works by repeatedly dividing the list in half and quickly narrowing it down to the desired item. #BinarySearch #nishantcoder #searching #algorithm #ThePrimeagen #CodingJourney #100DaysOfCode

NishantWeb3's tweet image. Binary Search is a  way to find something (like a number) in a sorted list or array. It works by repeatedly dividing the list in half and quickly narrowing it down to the desired item. #BinarySearch #nishantcoder #searching #algorithm #ThePrimeagen #CodingJourney #100DaysOfCode

Queue 👉 First In First Out [FIFO] 👈 Here, a #queue data structure is implemented in #typescript in the form of a linked list. First, we create the structure of a node type. Then, we create a class ... #nishantcoder #LearnInPublic #CodingJourney #dsa 1/5 🧵

NishantWeb3's tweet image. Queue 👉 First In First Out [FIFO] 👈

Here, a #queue data structure is implemented in #typescript in the form of a linked list.

First, we create the structure of a node type. Then, we create a class ... #nishantcoder #LearnInPublic #CodingJourney #dsa
1/5 🧵

Loading...

Something went wrong.


Something went wrong.


United States Trends