Tip 1 : Should know about everything you write in resume & well prepare.
Tip 2 : Solving problems as much as possible and participate in competitive programming contests.
Tip 3 : To know implementation of complex code and must write and should know the internal implementation of data structure you use while coding.
Tip 4 : To solve logical problems and will to learn new technologies.
Tip 1 : Must have project described at least 2-3 project for good impression
Tip 2 : To be honest about what you write in resume.
Tip 3 : Able to explain each things in shorted way.
Tip 4 : if you have good score in live coding challenge share the score and certification.
1. Can you tell how linear data structures differ from non-linear data structures?
2. What is the time complexity of basic operations get() and put() in HashMap class?
3. Which data structures are used for implementing LRU cache?
4. Explain recursive function to calculate the height of a binary tree in Java.
5. How do you implement stack using queues?
6. What is a doubly-linked list (DLL)? What are its applications.
Consider the array { 1, 1, 0, 2, 0 }.
For the given array the modified array should be {0,0,1,1,2} .
Arrays { 0, 0, 1, 2, 1 } and { 0, 0, 2, 1, 1 } are not the correctly reorganized array even if they have all the zero values pushed to the left as in both the arrays the relative order of non-zero elements is not maintained.
Can you solve the problem in linear time, and constant space?
Step 1: Split the given inputString into words using split() method.
Step 2: Then take each individual word, reverse it and append to reverseString.
Step 3: print reverseString.
public class ReverseEachWord
{
static void reverseEachWordOfString(String inputString)
{
String[] words = inputString.split(" ");
String reverseString = "";
for (int i = 0; i < words.length; i++)
{
String word = words[i];
String reverseWord = "";
for (int j = word.length()-1; j >= 0; j--)
{
reverseWord = reverseWord + word.charAt(j);
}
reverseString = reverseString + reverseWord + " ";
}
System.out.println(inputString);
System.out.println(reverseString);
System.out.println("-------------------------");
}
public static void main(String[] args)
{
reverseEachWordOfString("Java Concept Of The Day");
reverseEachWordOfString("Java J2EE JSP Servlets Hibernate Struts");
reverseEachWordOfString("I am string not reversed");
reverseEachWordOfString("Reverse Me");
}
}
1. If 'X' is not found in the array, return 0.
2. The given array is sorted in non-decreasing order.
Step 1 : Create one HashMap object called elementCountMap with elements of inputArray as keys and their occurrences as values.
Step 2 : Check every element of inputArray for its presence in elementCountMap.
Step 3 : If an element is already present in elementCountMap, increment it’s count by 1.
elementCountMap.put(i, elementCountMap.get(i)+1);
Step 4 : If an element is not present in elementCountMap, add this element to elementCountMap with 1 as it’s value.
elementCountMap.put(i, 1);
Step 5 : Print elementCountMap. This will contain all the elements of inputArray along with their occurrences.
Started with full Introduction, asking about last company experience & experties with Skills set. Explain give live project working. Roles & responsible with previous organisation. Based on resume they are asked questions
Step 1 : Define one HashMap called charCountMap with Character as key and Integer as value. This map will hold the characters and their count in the given string.
Step 2 : Convert inputString to char array called strArray.
Step 3 : Iterate through all chars of strArray and update their occurrences in charCountMap.
Step 4 : Iterate through all chars of strArray and check their count in charCountMap. Any first occurring character with 1 as it’s count will be the first non-repeated character in input String.
Step 5 : Iterate through all chars of strArray and check their count in charCountMap. Any first occurring character with >1 as it’s count will be the first repeated character in inputString.
OOPS Concept,
C and Java Difference,
DBMS, Data Structure
Java 8 features
Design patterns
Spring Boot
How to find trigonometric values of an angle in java?
Tip 1 : sine of an angle —> Math.sin();
Tip 2 : cosine of an angle —> Math.cos();
Tip 3 : tangent of an angle —> Math.tan();
Tip 4 : sec of an angle —> 1/Math.sin();
Tip 5 : cosec of an angle —> 1/Math.cos();
Tip 6 : cot of an angle —> 1/Math.tan();
Asking about experience & roles responsible with previous organisations
Introduction about your self
Why we hire you ?
Current CTC & Expected CTC
Why you are fit for the position?
How can you support us?
Tip 1 : Give them appropriate answer also showing them interested to join organisation
Tip 2 : Fit for the position because I have that much of skills & expertise
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is 3 + 2 * 4 based on operator precedence?