i
Sciative Solutions
Filter interviews by
Fibonacci series can be generated using iterative approach with a loop and two variables.
Declare two variables to store the first two numbers of the series
Use a loop to generate the next number by adding the previous two numbers
Repeat the loop until the desired number of terms is generated
Store the generated numbers in an array
Inline functions in Python are functions that are defined and called in a single line of code.
Inline functions are defined using the lambda keyword.
They are useful for simple operations that don't require a full function definition.
Example: double = lambda x: x * 2
Inline functions can be used as arguments for other functions.
Example: list(map(lambda x: x * 2, [1, 2, 3])) returns [2, 4, 6]
Tracing all squares in a chess board by valid moves of a Knight without repeating any square.
Create a 2D array to represent the chess board.
Start from any square and mark it as visited.
Generate all possible moves of a Knight from the current square.
Check if the move is valid and not visited before.
If yes, mark the square as visited and add it to the path.
Repeat the above steps until all squares are visited.
If no more m...
Top trending discussions
posted on 1 Feb 2024
posted on 24 Jul 2024
I applied via Job Portal and was interviewed in Jun 2024. There were 2 interview rounds.
Fine able to clear easy which you learn basics
Try more problems and complex coding and skills
posted on 6 Feb 2024
I applied via Campus Placement
The shared one file of assignment we need to solve it and send back to them
I applied via Naukri.com and was interviewed in Aug 2023. There were 2 interview rounds.
Test on paper , cbt
Business Analyst
13
salaries
| ₹3 L/yr - ₹6 L/yr |
Data Analyst
11
salaries
| ₹2.5 L/yr - ₹7 L/yr |
Junior Business Analyst
10
salaries
| ₹4 L/yr - ₹5 L/yr |
Jr. Data Scientist
9
salaries
| ₹4 L/yr - ₹6 L/yr |
Junior Software Developer
9
salaries
| ₹5 L/yr - ₹7 L/yr |
TCS
Infosys
Wipro
HCLTech