Python Algorithm – Pairwise swap elements of a given linked list – Linked List – Given a singly linked list, write a function to swap elements pairwise
Data Structures
Java Algorithm – Pairwise swap elements of a given linked list – Linked List – Given a singly linked list, write a function to swap elements pairwise
Cpp Algorithm – Pairwise swap elements of a given linked list – Linked List – Given a singly linked list, write a function to swap elements pairwise
C Algorithm – Pairwise swap elements of a given linked list – Linked List – Given a singly linked list, write a function to swap elements pairwise
Largest Rectangular Area in a Histogram | Set 2 – Stack – Find the largest rectangular area possible in a given histogram where the largest rectangle
One Solution is to first sort the array and find the longest subarray with consecutive elements. Time complexity of this solution is O(nLogn).
One Solution is to first sort the array and find the longest subarray with consecutive elements. Time complexity of this solution is O(nLogn).
Expression Evaluation – Stack -Evaluate an expression represented by a String. Expression can contain parentheses, you can assume parentheses
Java Programming-Merge two sorted linked lists such that merged list is in reverse order-Linked list
Given two linked lists sorted in increasing
Cpp Algorithm – Remove duplicates from an unsorted linked list – Linked List – Write a removeDuplicates() function which takes a list and deletes