Yahoo India Web Search

Search results

  1. 5 days ago · Here is longest palindrome solution I have written using dynamic programming with memoization. It passes several of the test cases (46/142), but the solution is not at 100% on Leetcode. Time limit is exceeding (TLE) for very long inputs. How to make it work for long inputs as well?

  2. 3 days ago · Given string str we need to tell minimum characters to be added in front of the string to make string palindrome. Examples: Input : str = "ABC" Output : 2. We can make above string palindrome as "CBABC" . by adding 'B' and 'C' at front. Input : str = "AACECAAAA"; Output : 2. We can make above string palindrome as AAAACECAAAA.

  3. 3 days ago · Frequently asked Java basic programs include Fibonacci series, prime numbers, factorial numbers, and palindrome numbers, among others. Each program is accompanied by multiple examples and their respective outputs.

  4. 1 day ago · A palindromic number is a number that remains the same when its digits are reversed. For example, 121, 12321, and 100001 are all palindromic numbers. Understanding the Problem. The problem can be defined as:--question begin-- Given integer N, find the smallest palindromic number (String format) N digits divisible by 7. --question end--

  5. 5 days ago · The practical ways of using the useful substring functionality in Java - from simple examples to more advanced scenarios.

  6. 4 days ago · Java Enums are used when we know all possible values at compile time, such as choices on a menu, rounding modes, command-line flags, etc. The set of constants in an enum type doesn’t need to stay fixed for all time.

  7. 4 days ago · The set bits from 0-3 (the upper right box above) is 2*2^ (2-1) = 4. The box in the lower right is the remaining bits we haven’t yet counted, and is the number of set bits for all the numbers up to 2 (the value of the last entry in the lower right box) which can be figured recursively. C++ C Java Python C# JavaScript.