# Category: Problem Solving

### Validate Palindrome String in java

Write a Java program to validate palindrome String. Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For

### Java program to Validate Parentheses

Write a Java program to validate parentheses. Given a string containing just the characters â€™(â€™, â€™)â€™, â€™â€™, â€™â€™, â€™[â€™ and â€™]â€™, determine if the input

### Longest Consecutive array Sequence in Java

Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, given [100, 4, 200, 1, 3, 2], the

### Java Code to print Date and Time for a specific country

Write a Java program to print the current time in the different countries, In this java program example, we will see how to print the

### Write a Java program to print the first and last of given month

Write a Java program to print the first and last date of a given month. In this Java program example, we will see how to

### Find two numbers to add up to a specific target number in Java

Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of

### Solve Word Break Problem in Java

Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary

### Merge collection of intervals in Java

Given a collection of intervals, merge all overlapping intervals. For Example: Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. The key to solving this problem is defining a Comparator

### Find Median of Two Sorted Arrays in Java

There are two sorted arrays A and B of sizes m and n respectively. Find the median of the two sorted arrays. The overall run

### Find the shortest chain in Java (Find Ladder Length)

Given two words (start and end), and a dictionary, find the length of the shortest transformation sequence from start to end, such that: Only one