i
Magic Edtech
Filter interviews by
Top trending discussions
posted on 24 Aug 2024
Use the built-in sort() method in JavaScript to sort an array of integers.
Use the sort() method with a compare function to sort the array in ascending order.
For descending order, return b - a instead of a - b in the compare function.
Example: let arr = [3, 1, 5, 2]; arr.sort((a, b) => a - b);
Rotate an array of strings by a specified number of positions.
Create a new array to store the rotated elements.
Use modulo operator to handle cases where the rotation count exceeds the array length.
Copy elements from original array to the new array based on the rotation count.
Return the rotated array.
I applied via Naukri.com and was interviewed in Apr 2021. There were 5 interview rounds.
Program to print right angle triangle of number pattern using Python.
Use nested loops to print the pattern.
The outer loop will iterate through the rows.
The inner loop will iterate through the columns.
Use the range function to control the number of rows and columns.
Print the numbers in the pattern using string formatting.
Program to merge and sort 2 lists using Python.
Create two lists and merge them using the extend() method.
Sort the merged list using the sort() method.
Alternatively, use the sorted() function to sort the merged list.
Example: list1 = ['apple', 'banana', 'cherry'], list2 = ['orange', 'kiwi', 'mango']
Example: merged_list = list1 + list2
Example: merged_list.sort() or sorted(merged_list)
I applied via Naukri.com and was interviewed in Aug 2021. There was 1 interview round.
posted on 23 Apr 2021
I applied via Naukri.com and was interviewed in Nov 2020. There were 3 interview rounds.
posted on 16 Jul 2024
posted on 11 Nov 2021
I applied via Referral and was interviewed before Nov 2020. There were 3 interview rounds.
posted on 8 Jul 2024
posted on 6 Feb 2019
I applied via Approached by Company and was interviewed in Dec 2018. There were 5 interview rounds.
based on 14 reviews
Rating in categories
Consultant
143
salaries
| ₹5.8 L/yr - ₹22.8 L/yr |
Senior Software Engineer
133
salaries
| ₹6.3 L/yr - ₹18.5 L/yr |
Software Engineer
126
salaries
| ₹4 L/yr - ₹13.5 L/yr |
Lead Consultant
125
salaries
| ₹8 L/yr - ₹29.4 L/yr |
Softwaretest Engineer
119
salaries
| ₹1 L/yr - ₹7 L/yr |
TCS
Infosys
Wipro
HCLTech