SOLID: 5 Principles of Object Oriented Design

SOLID: 5 Principles of Object Oriented Design

#swe

#java

Sep 02, 2022

SOLID is an acronym for five object-oriented design principles that are followed to keep code maintainable, scalable and understandable.

Alex Sikorski

Alex Sikorski

Finding the Users Active Minutes (LeetCode #1817)

Finding the Users Active Minutes (LeetCode #1817)

#java

#leetcode

#leetcode medium

Jul 12, 2022

An answer that utilises HashMap and HashSet written using two loops that achieves an optimal time and space complexity.

Alex Sikorski

Alex Sikorski

Fizz Buzz (LeetCode #412)

Fizz Buzz (LeetCode #412)

#leetcode easy

#leetcode

#java

Jul 08, 2022

A Java solution that loops once and uses the modulo operator to check if integers are divisible by 3,5 or 3 and 5.

Alex Sikorski

Alex Sikorski

Watering Plants (LeetCode #2079)

Watering Plants (LeetCode #2079)

#leetcode medium

#leetcode

#java

Jun 26, 2022

A Java solution that uses one loop to count how many steps are required to water plants.

Alex Sikorski

Alex Sikorski

Maximum 69 Number (LeetCode #1323)

Maximum 69 Number (LeetCode #1323)

#leetcode easy

#leetcode

#java

Jun 23, 2022

A Java solution that seeks the first '6' character and calculates a new maximum using just one for loop.

Alex Sikorski

Alex Sikorski

Sorting the Sentence (LeetCode #1859)

Sorting the Sentence (LeetCode #1859)

#leetcode easy

#leetcode

#java

Jun 16, 2022

The most time and space efficient Java solution, where an array of fixed size is used to sort as specified by the problem.

Alex Sikorski

Alex Sikorski

Find Target Indices After Sorting Array (LeetCode #2089)

Find Target Indices After Sorting Array (LeetCode #2089)

#java

#leetcode

#leetcode easy

Jun 05, 2022

A Java solution that works around not having to sort an array, that would otherwise take more time to compute.

Alex Sikorski

Alex Sikorski

Number of Segments in a String (LeetCode #434)

Number of Segments in a String (LeetCode #434)

#leetcode easy

#leetcode

#java

Jun 02, 2022

A Java solution for finding segments determined by a contiguous sequence of non-space characters.

Alex Sikorski

Alex Sikorski

Valid Parentheses (LeetCode #20)

Valid Parentheses (LeetCode #20)

#leetcode easy

#leetcode

#java

May 30, 2022

A Java solution using a LIFO (Last In First Out) stack, determine if a string is valid.

Alex Sikorski

Alex Sikorski

Categories