JMJoão Marcos Carnielinjoaodeveloper.hashnode.dev·Dec 29, 2025 · 4 min readReducing 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...00
JMJoão Marcos Carnielinjoaodeveloper.hashnode.dev·Dec 23, 2025 · 3 min readArrays 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 ...00
JMJoão Marcos Carnielinjoaodeveloper.hashnode.dev·Oct 2, 2025 · 2 min readVariable 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...00
JMJoão Marcos Carnielinjoaodeveloper.hashnode.dev·Aug 22, 2025 · 2 min readBacktrackingHow 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 ...00
JMJoão Marcos Carnielinjoaodeveloper.hashnode.dev·Aug 18, 2025 · 1 min readPermutationsDEFINITION 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...00