Understand what an inversion is and look into ways of solving the problem of counting inversions in an array.
Also find me here:
Baeldung Author
Said Sryheni
I have a master's degree in software engineering. Currently, I'm working as a full-stack developer with +6 years of experience. I like algorithms and data structures, in addition to solving complex problems by writing clean and reliable code.
Here's what I've written (so far):
Baeldung on Computer Science
- All
- Algorithms (30)
- Math and Logic (11)
- Searching (9)
- Path Finding (9)
- Graphs (8)
- Trees (7)
- Graph Traversal (7)
- Data Structures (7)
- Sorting (6)
- Programming (2)
- Networking (1)
- Core Concepts (1)
Finding a Cycle in a Singly Linked-List
Filed under Path Finding
Have a look at algorithms for finding a cycle in a singly linked-list.
Finding the Most Significant Bit
Filed under Algorithms, Core Concepts
A quick and practical guide to finding the most significant bit.
Non-Recursive Merge Sort
Filed under Sorting
A quick and practical overview of the non-recursive merge sort algorithm.
Introduction to Depth First Search Algorithm (DFS)
Filed under Graph Traversal
A quick and practical overview of the DFS algorithm.
Merge Two Sorted Arrays Into a Sorted Array
Filed under Sorting
A quick and practical guide to merging two sorted arrays into a single sorted array.
Efficient Ways to Find the Intersection of Lists
Filed under Algorithms, Data Structures
A quick and practical guide to finding the intersection of linked lists.
Remove Duplicates From a Linked List
Filed under Algorithms, Programming
A quick and practical tutorial to removing duplicates from a linked list.
Maximizing Profit for Given Stock Quotes
Filed under Math and Logic
A quick and practical guide to maximizing profit for given stock quotes.