Day 58 of 360: Problem Solving and Cloud & DevOps Learning

Prashant JoshiPrashant Joshi
2 min read

Hello everyone,

Today marks Day 58 of my 360 Days of Learning journey, and it was another productive day filled with solving coding challenges and diving deeper into Cloud and DevOps. 🧩✨

Problems Solved:

  1. Sort Colors (LeetCode Q75):

    • Problem: Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.

    • Approach: I used the Dutch National Flag Algorithm with three pointers: start, mid, and end. Using a switch case to solve this problem, I ensured the elements were sorted in the desired order. This could also be achieved using if-else statements, but the switch case made it more streamlined.

  2. Remove Duplicates from Sorted Array (LeetCode Q26):

    • Problem: Given a sorted integer array nums, remove duplicates in-place so that each unique element appears only once. The relative order of the elements should be maintained. Then return the number of unique elements.

    • Approach: Using the two-pointer technique starting from index 0, I moved through the array. If elements at both pointers were the same, one pointer moved to the next element until a unique element was found. Then, I advanced the other pointer and swapped elements. This process continued until reaching the end of the array.

This covers my programming and data structures & algorithms practice for today.

Cloud and DevOps Learning:

In addition to programming, I also focused on enhancing my Cloud and DevOps skills:

  • Linux Commands: I learned various commands essential for a DevOps and Cloud engineer to perform daily tasks efficiently. Here is the cheat sheet I used: Linux for Devops Commands Cheat Sheet.

  • Understanding Linux and Its Kernel: I deepened my understanding of how Linux and its kernel work, including server data default paths, common log files, and using the Vim text editor.

Join Me on This Journey:

I invite you all to follow along, share your thoughts, and connect with me as I continue this year-long educational adventure. Your support and insights will be greatly appreciated!

Stay tuned for more updates, and feel free to check out my daily progress on Instagram and now here on LinkedIn!

0
Subscribe to my newsletter

Read articles from Prashant Joshi directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Prashant Joshi
Prashant Joshi

Fuelled by boundless passion for DevOps and cloud technologies ☁️☁️☁️ ☁️, I'm on an exhilarating journey of mastery of Computer Application (MCA). I'm not just learning; I'm devouring DevOps principles and cloud tech, crafting the future through relentless innovation and automation. 😉