Sudoku. Fill the elements in sudoku
Java Software Developer Interview Questions
30,904 java software developer interview questions shared by candidates
String reversal
1. Multithreading concepts 2. JVM questions 3. Sliding window leet code problem 4. Stocks leet code problem
You are given an array of words (strings) and an integer k k k. Your task is to write a function that returns the k k k longest words from the array. If there are fewer than k k k words in the array, return all the words sorted by length in descending order. If there are ties in length, return the words in alphabetical order. Input: An array of strings words[] where each string consists of lowercase and uppercase letters only. An integer k k k (1 ≤ k k k ≤ 100). Output: An array of the k k k longest words, sorted by length (and alphabetically if lengths are equal). Example: plaintextInput: words = ["apple", "banana", "kiwi", "grape", "watermelon"], k = 3 Output: ["watermelon", "banana", "apple"] Input: words = ["cat", "bat", "rat"], k = 5 Output: ["bat", "cat", "rat"] Constraints: The output array should not exceed k k k elements. You may assume that the input will always have at least one word.
Prepare for every topics that are needed.
what is oop in java?
Sort input array on number on the basis of their dictionary name
Q) Question is based on basic concept of c++?
Why EPAM?
What methods of class Object do you now?
Viewing 2541 - 2550 interview questions