Tip 1 : Don't waste much time on easy questions
Tip 2 : If you can't make a solution to the problem. Check out other's solution
Tip 3 : Do some good projects
Tip 1 : Write only those skills in which you are confident
Tip 2 : Have a variety of achievements in your resume
This was an online round including
1 coding questions.
1 REST API problem
1 Sql query problem
6 MCQ's



Input:
str="AABC" k=1
Output:3
Explanation: Replace 'B' with 'A', we will get "AAAC" and the longest substring with same character is "AAA" of length 3.
Given a table with 4 fields
1. ID Integer
2. Name String
3. Months Integer
4. Hackos Integer
Write a query to print the names of all the hackers who have earned more than 100 hackos in less than 10 months
Tip 1 : Do practice SQL queries
Interviews were conducted in online mode on zoom meeting.



If the string is “bca”, then its permutations in lexicographically increasing order are { “abc”, “acb”, “bac”, “bca”, “cab”, “cba” }.
Given string contains unique characters.



Suppose the board looks as follows:
X O X
O O X
_ _ _
We can see that if we put X at positions 3, 3 in the grid we win straightaway. Hence the best possible score is 1 (Win). If we put our symbol anywhere else we will not be able to achieve the desired score.
If there are multiple positions leading to the same score, choose the position with the minimum row. If there are still multiple positions, choose the one with the minimum column.
Interviews were conducted in online mode on zoom meeting.



A Sudoku solution must satisfy all the following conditions-
1. Each of the digits 1-9 must occur exactly once in each row.
2. Each of the digits 1-9 must occur exactly once in each column.
3. Each of the digits 1-9 must occur exactly once in each of the 9, 3x3 sub-grids of the grid.
You can also assume that there will be only one sudoku solution for the given matrix.
solved using backtracking



As depicted in the photo below, the knight currently at (0, 0) can move to any of the 8 positions: (1, 2), (2, 1), (2, -1), (1, -2), (-1, -2), (-2, -1), (-2, 1), (-1, 2).

If X = 1 and Y = -1, then we need to find out the minimum number of steps to move the knight from (0, 0) to (1, -1).
We need at least 2 steps to move the knight to the desired position.
First move: (0, 0) -> (2, 1)
Second move: (2,1) -> (1, -1)
Here we can see that there are many ways, but we need at least 2 steps. Therefore we will return the value 2.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?