Skip to content

Refactored Codes

A software engineering website.

  • Interview Questions
  • Functional Programming
  • Concurrency
  • java.util.function
  • Data Structures
  • C Coding
  • Design Patterns
  • Spring Framework
  • Java
  • Operating System

Tag: Iterative

Home ⁄ Posts Tagged "Iterative"

December 26, 2018

Find length of a linked list by iterative method

Anurag Anand DataStructures, Java, Linked List datastructures, Iterative, Java, Linked List

We are going to find lenght of a Linked List using iterative method. You can read the recursive method here. The simple logic to find length of a Linked list is – to increment a counter until you run out of nodes. Here is the simple algorithm. Step 1 :- Initialize a counter to 0 […]

Read more
copyright 2018 - 2021