Tag: Hashing

Iterate through HashMap in Java

HashMap contains data in (Key, Value) pairs that can be accessed using a different index type. The Map interface is implemented by the HashMap class, which allows us to store keys. Since Java 1.2, hashMap has been a part of the Java collections framework. Internally, it employs a relatively quick hashing technique. ...
Continue Reading Iterate through HashMap in Java

Top 25 Java Interview Questions

Java is one of the three fundamental technologies in the web world, as it is the most commonly used and deployed language. In 1991, James Gosling, Patrick Naughton, and Mike Sheridan created it. With its first-class functions, this high-level language has earned a name in the IT industry, promising a bright future for developers. ...
Continue Reading Top 25 Java Interview Questions

How to find SubArray with given Sum in Python

The aim of this article is to help you compute the subarray whose sum is given and the subarray is contiguous. For your information, a contiguous array is one whose elements occupy positions that follow each other. In addition, the sequence of elements is also maintained. ...
Continue Reading How to find SubArray with given Sum in Python