joaodeveloper.hashnode.devReducing Time Complexity From O(n²) to O(n)Using the Two Sum exercise from LeetCode we can study how a problem can be solved with less complexity. The description of the problem is very simple: Given an array of integers nums and an integer target, return indices of the two numbers such that...Dec 29, 2025·4 min read
joaodeveloper.hashnode.devArrays and ListsBoth array and list are types of data structure that stores a collection of elements. The array has a fixed size while lists are dynamic and can have their size updated during runtime. This main difference directly influences the usage of memory and ...Dec 23, 2025·3 min read
joaodeveloper.hashnode.devVariable Naming ConventionsThis article is inspired by the official Microsoft documentation: https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/naming-guidelines It is advisable to read the original article for a more complete understanding of the subject. I...Oct 2, 2025·2 min read
joaodeveloper.hashnode.devBacktrackingHow to use Backtracking in simple problems When using backtracking we basically want to “take pictures” of a certain state of our list, object, etc. This “pictures” we save in another list and after we follow two paths. In the first one we increment ...Aug 22, 2025·2 min read
joaodeveloper.hashnode.devPermutationsDEFINITION A simple way to define permutations is the rearrangement of elements inside of a variable. For exemplo, if it’s necessary to do a permutation in this numbers “123” we would get this result: 123132213231312321 6 possible permutations fo...Aug 18, 2025·1 min read