Tags » Linked List

Coding: Reversing Unordered Single Linked List using 2 Pointers


Given an Unsorted Single Linked List, provide an Algorithm to reverse such Linked List using only 2 pointers.


A Single Linked List. 414 more words

Data Structures And Algorithms

Simple Polynomial data structure and Calculator for single variable


The first code takes an integer for the value of the variable and the next one takes a double for the value of variable and produces value of the function. 1,222 more words


Pointers and Dynamic Linked Lists in C

One of the more awe-inspiring features of C is its use of pointers.

Pointers enable us to create complex and dynamic data structures like linked lists and binary trees. 885 more words

Karim Oumghar reblogged this on Bits and Pieces of Code and commented:

More C related material, can be useful in learning pointers in either C or C++

Singly linked list

Moving on to Singly linked list,

A list is a sequence of finite abstract data which can be ordered or unordered

Many types of lists exist,but in a generic linked list, three basic operations are possible,

831 more words
Linked List

Reverse Nodes in k-Group



Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. 229 more words


Swap Nodes in Pairs



Given a linked list, swap every two adjacent nodes and return its head.

For example,
Given 1->2->3->4, you should return the list as… 196 more words