Category: java
In Java, the Map (java.util.Map) is a Generic Interface that stores a key value pair: /* * @see HashMap * @see TreeMap * @see Hashtable * @see SortedMap * …
Given a palindromic string palindrome, replace exactly one character by any lowercase English letter so that the string becomes the lexicographically smallest possible string that isn’t a palindrome. After …
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result of …
Given a binary tree root and an integer target, delete all the leaf nodes with value target. Note that once you delete a leaf node with value target, if …
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121 Output: true Example 2: Input: …