The function iterates through the string once using a for loop over range(len(str1)), meaning the loop runs O(N) times, where N is the length of str1.
Inside the loop, all operations (comparisons, assignments, and string concatenation) are O(1).
The result += f"{counter}{last_char}" operation can take up to O(K) time if string concatenation is expensive (where K is the final length of result).
Other Software Development Engineer In Test (SDET) Interview Reviews for Infosys
nline test to check aptitude and basic skills.
Technical interview about your subjects, projects, and role skills (coding for dev, testing for QA/SDET).
HR round for salary, location, communication, and fit.
Interview questions [1]
Question 1
Reverse a string.
Find the missing number in an array.
Find duplicate elements in an array.
Move all zeros to the end of the array
Almost 45 mins of the interview they asked all about project experience and real time client experiences good excel related questions and file operations some like in code round they asked arrays aswell
I applied online. I interviewed at Infosys (Charlotte, NC)
Interview
write a java code how to ignore java exception
write a locator with xpath to locate dynamic webelment in webtable
write a logic to select a dynamic dropdown
API testing headers