Recognizing the Problem Your objective is to remove all duplicate elements from the supplied Linked List, given a sorted linked list with some duplicate elements. As a result of resolving this issue, your Linked List will only contain elements that…
Category: Java
Finding middle element in a linked list
Let’s understand the problem! Write a programme that discover the middle node of a singly linked list given a single node. If the number of nodes is even, we must return the second middle node. Examples Input: 5->4->3->2->1, Output: 3…
Multiply two strings with example JAVA, PHP, JS, PYTHON
Given two positive numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find product of these two numbers. Examples: Input : num1 = 4154 num2 = 51454 Output…
Roman Number to Integer Example in JAVA, PHP, JS, PYTHON
Given a Roman numeral, the task is to find its corresponding decimal value. Example : Input: IX Output: 9 IX is a Roman symbol which represents 9 Input: XL Output: 40 XL is a Roman symbol which represents 40 Input:…
What is Isomorphic Strings
Specification Determine whether two strings, s and t, are isomorphic. If the characters in s can be replaced to get t, two strings are isomorphic. All instances of a character must be replaced with another character while maintaining the character…
Find duplicates in an array
Explanation We need to find the duplicate elements in the array in this programme. This can be accomplished with two loops. The first loop selects an element, while the second loop iterates across the array by comparing the selected element…
Android WebView With Downloading File
In this tutorial we will handle downloading files from WebView, The Android java code below can be used to download any type of files to your Android device’s storage with the file’s original name, be it an .mp3, mp4,jpg or pdf,…