{ "@context": "https://schema.org", "@graph": [ { "@type": "WebSite", "@id": "https://www.ggorantala.dev/#website", "url": "https://www.ggorantala.dev/", "name": "Gopi Gorantala", "description": "Staff engineer building Kafka and Flink platforms for banking. Production failures traced to root cause." }, { "@type": "Person", "@id": "https://www.ggorantala.dev/#person", "name": "Gopi Gorantala", "url": "https://www.ggorantala.dev/", "jobTitle": "Staff Software Engineer", "worksFor": { "@type": "Organization", "name": "ING Bank" }, "sameAs": [ "https://x.com/ggorantala", "https://www.linkedin.com/in/ggorantala/", "https://github.com/ggorantala", "https://leetcode.com/ggorantala" ] } ] }
Skip to content

Gopi Gorantala

Staff engineer architecting Kafka and Flink platforms for banking, where a dropped event is a reconciliation break, not a retry. Through javahandbook.com, I share production-tested guidance on building reliable event-driven systems.

Your First Maven Project

Introduction Now that you understand Maven’s installation and project structure, it’s time to create your first Maven project. In this lesson, you’ll learn how to: * Create a Maven project using archetypes * Use the mvn archetype:generate command * Open your Maven project in IntelliJ IDEA or Eclipse By

Maven project structure

Learn Maven's standard project structure and directory layout for Java development. Master src/main/java, src/test/java, resources folders, and target build outputs. Follow Maven conventions for better IDE compatibility, team collaboration, and automated builds.

Understanding pom.xml

Master Maven pom.xml: Learn GAV coordinates, dependencies, plugins, and build configuration. Complete guide to Project Object Model structure for Java developers. Essential Maven tutorial.

How to install Maven

Learn how to install Apache Maven on Windows, macOS & Linux. Step-by-step guide covers downloading, setting JAVA_HOME/MAVEN_HOME environment variables & verifying installation with mvn -v command.

Arithmetic and Logical Right Shifts

The logical right shift means shifting the bits to the right, and MSB(most significant bit) becomes 0. The arithmetic right shift means shifting the bits to the right, and MSB is the same as in the original number.

Bitwise Left Shifts

The left-shift operator causes the bits in shift-expression to be shifted to the left by the number of positions specified by additive-expression. The bit positions that have been vacated by the shift operation are zero-filled.

Introduction to Bit Shifting

A bit shift is a Bitwise operation where the order of a series of bits is moved, either to the left or right, to efficiently perform a mathematical operation.

Solution Review: Missing Number

We solved the problem using lookup (hashtable), using the mathematical formula. Let's solve this more efficiently using bit-level operations with XOR and then optimize the solution.

Challenge 2: Missing Number

In this article, we'll learn various ways to find the missing number in an array. We use a memoization approach, a mathematical approach, and the most optimized way using the XOR operator.

Solution Review: Single Number

Single Number coding question, can be easily solved with XOR bitwise technique with linear time complexity.