Tip 1 : Understand the concepts Data Structures and get good understanding of its concepts. Practice coding questions and participate in online contests very frequently.
Tip 2 : Work strategically more on to analyze time being used to attempt the questions and space complexity. Always emphasis on the strategies to further optimize the solution.
Tip 3 : Effective communication skills are key for interview.
Tip 1 : Practice on good projects and mention them in your resume.
Tip 2 : Keep your resume to the point and do not mention any such skill, project or achievement in which you do not have any experience.
Tip 3 : Mention achievements which displays your technical skills, communication skills and teamwork. If you can showcase leadership quality, it will be added advantage. Go through your resume completely.
We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
1. Coordinates of the cells are given in 0-based indexing.
2. You can move in 4 directions (Up, Down, Left, Right) from a cell.
3. The length of the path is the number of 1s lying in the path.
4. The source cell is always filled with 1.
1 0 1
1 1 1
1 1 1
For the given binary matrix and source cell(0,0) and destination cell(0,2). Few valid paths consisting of only 1s are
X 0 X X 0 X
X X X X 1 X
1 1 1 X X X
The length of the shortest path is 5.
First explained the approach to the interviewer. He was satisfied with the discussions and asked me to write code.
There were few basic SQL questions for DBMS.
1. I was asked to describe a join to a non-technical person.
2. There was a question to write query for how to select all customers who purchased minimum two items on two separate days.
3. Given a table with a combination of flight paths, how would you identify the unique flight if you don't care which city is the destination or arrival location.
1. A binary tree is a tree in which each node can have at most two children.
2. The given tree will be non-empty i.e the number of non-NULL nodes will always be greater than or equal to 1.
3. Multiple nodes in the tree can have the same values, all values in the tree will be positive.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which is a DDL command in SQL?