Leetcode

23. Merge k Sorted Lists

In the realm of algorithms and data structures, the task of merging k sorted linked lists is a familiar challenge. In this blog, we’ll embark on a journey through a naive approach and then pivot to a more optimal solution. Our starting point is a Java solution that might seem intuitive but lacks the efficiency…

Tech

A Guide to Linux Help Commands

Linux, with its powerful command-line interface, empowers users with a myriad of tools and utilities. Understanding how to navigate this vast ecosystem is crucial for efficient and effective system management. In this blog, we will explore key commands that provide invaluable help and documentation, namely whatis, man, –help, and apropos. 1. whatis – Unveiling the…

Leetcode

938. Range Sum of BST

Binary Search Trees (BSTs) are a fundamental data structure in computer science, known for their efficient search and retrieval operations. In this blog, we’ll delve into a Java solution for calculating the sum of values within a specified range in a BST. The provided code snippet showcases a recursive approach to achieve this task. Understanding…

Tech

What these $ and # symbol means in command line

The Linux terminal, with its command-line interface, is a powerful tool that offers users unparalleled control over their systems. As you navigate the terminal, you’ll encounter a variety of symbols in the prompt, each conveying important information about your current environment and permissions. In this blog, we’ll delve into the significance of these symbols and…

Tech

How to Write custom annotation in Micronaut

Introduction: Micronaut, with its lightweight and reactive architecture, has become a popular choice for building microservices. While the framework offers a plethora of built-in annotations, there may be scenarios where you want to tailor the behavior of your application with custom annotations. In this blog post, we’ll delve into the exciting realm of crafting custom…

Micronaut

Enabling Metrics in Micronaut: A Comprehensive Guide

Why Metrics Matter in Micronaut Metrics play a crucial role in monitoring the health, performance, and resource utilization of microservices. In a Micronaut application, metrics provide valuable information such as: Resource Utilization: Understand how your application consumes resources like CPU, memory, and threads. HTTP Request Metrics: Monitor the incoming HTTP requests, response times, and error…

Tech

How to solve “Running scripts is disabled on this system” in Windows

In the realm of Windows environments, encountering the dreaded “Running scripts is disabled on this system” message can be perplexing and frustrating. This restriction often poses a hurdle when attempting to execute scripts, especially in PowerShell. Fear not, for this blog will guide you through simple yet effective solutions to overcome this obstacle. Solution 1:…

Micronaut

Connecting with MySql Database in Micronaut

Micronaut, a powerful and lightweight framework, provides an excellent platform for building microservices. In this blog, we’ll explore the seamless integration of MySQL, a popular relational database, into a Micronaut application. This integration ensures data persistence with efficiency and simplicity. Prerequisites Before connecting to a database in Micronaut, make sure you have the following prerequisites:…

Micronaut

How to write custom queries in Micronaut

Introduction: Micronaut Data, a part of the Micronaut framework, simplifies database access in Java and Kotlin applications. While Micronaut Data offers many built-in features for CRUD operations, there are scenarios where custom queries are necessary. This blog will guide you through the process of writing custom queries in Micronaut Data. Why Custom Queries? Micronaut Data…

Pages