Java forEach method examples

Java forEach method examples

Java1 mins read
Three Number Sum Problem (Find all triplets with the given sum)

Three Number Sum Problem (Find all triplets with the given sum)

Algorithms1 mins read
Two Number Sum Problem solution in Java

Two Number Sum Problem solution in Java

Algorithms1 mins read
Remove duplicates from sorted array II

Remove duplicates from sorted array II

Algorithms1 mins read
Remove duplicates from sorted array

Remove duplicates from sorted array

Algorithms1 mins read
Find the pair with the smallest difference in two unsorted arrays

Find the pair with the smallest difference in two unsorted arrays

Algorithms1 mins read
Find the closest element to a target value in a binary search tree

Find the closest element to a target value in a binary search tree

Algorithms1 mins read
Design and implement a data structure for Least Recently Used (LRU) cache

Design and implement a data structure for Least Recently Used (LRU) cache

Algorithms1 mins read
Convert Sorted Array to Balanced Binary Search Tree

Convert Sorted Array to Balanced Binary Search Tree

Algorithms1 mins read
Given a binary tree, determine if it is height-balanced

Given a binary tree, determine if it is height-balanced

Algorithms1 mins read