Binary Tree Reverse Level Order Traversal- LeetCode

Problem Statement Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (i.e, from left to right, level by level from leaf to root). For example:Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 return its bottom-up level order traversal as: [ [15,7], [9,20], [3] ] Intuition Alternative Explanation BinaryContinue reading “Binary Tree Reverse Level Order Traversal- LeetCode”

Two Sum Problem- LeetCode

Problem Statement Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Example:- Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] = 2 + 7Continue reading “Two Sum Problem- LeetCode”

Restaurant Management System

This program enters the details of the dining area and the waiters registering in the restaurant. It then lets the Restaurant Manager assign dining areas to their corresponding waiters and books them whenever a customer comes to the restaurant to avail the services. Finally. the Restaurant Manager generates the bill with the help of theContinue reading “Restaurant Management System”

Cab Hailing Service in Java

This program lets customers and drivers register themselves by entering their details. The cabs’ details like carName, carNumber, carColor, location(latitude and longitude) are entered and put into a hashMap. The registered drivers can also send their updated location to the server. Once done, passengers can book the available taxis nearby their areas. Now, the userContinue reading “Cab Hailing Service in Java”

Introduction to Git

Github is a web-based platform used for version control. Git simplifies the process of working with other people and makes it easy to collaborate on projects. Team members can work on files and easily merge their changes in with the master branch of the project. Git & GitHub skill has slowly made its way from preferred skills toContinue reading “Introduction to Git”

Product Management in Java

This program enters users and products details. It then maps users’ phone numbers to their names and products’ ids to the other product details ( product name, product price, product color) with the help of HashMap. Finally, it tells the name of the user and product details when searched with the help of phone numberContinue reading “Product Management in Java”

User Management Program in Java

This program enters users details (name, address, city, date of birth, phone number, email Id). It then maps phone numbers to names with the help of HashMap. Finally, it tells the name of the user which is searched by entering the phone number. Prerequisite Java is an object-oriented programming language. It allows you to divideContinue reading “User Management Program in Java”

Learn to code calculator in java for beginners

Prerequisite Java To develop and run any java program you need to install Java in your system. You can download the latest version of Java for Windows/ Mac/ Linux/ Solaris from here. For more detailed steps, please visit this page. IntelliJ IDE After downloading Java, you need to download an IDE. I personally prefer IntelliJ IDEAContinue reading “Learn to code calculator in java for beginners”

Design a site like this with WordPress.com
Get started