Documenting my daily LeetCode journey here!

Today's Problem:

1512. Number of Good Pairs

My First Approach

My initial solution was straightforward: compare every element with every other element and count the pairs where the values are equal and i < j.