Jobs
Interviews

Zopsmart

We are building next generation technology for the retail sector. Our customers range from a small furniture shop to multinational retail chains. Our solutions include an E-Commerce platform, a point-of-sale system, Order Management Platform, Automated Logistics Systems and IOT Devices. We are also dabbling with AR/VR, Artificial Intelligence, Machine Learning and anything interesting that comes our way. We are a team of language agnostic learners with experience in number of open source technologies. We work with fun, passion and cutting edge technology.

Interview Questions for Zopsmart

1. Write DB queries to find the second largest element.

2. What is an IOC Container in Spring Boot?

3. Write a program to slice an array from a given index and rearrange the array without using extra variables or built-in methods.

4. Rotational Equivalence of Strings Problem Statement Given two strings 'P' and 'Q' of equal length, determine if string 'P' can be transformed into string 'Q' by cyclically rotating it to the right any number of times (possibly zero). Explanation: A cyclic right rotation involves moving the rightmost character of string A to the leftmost position. For instance, if A = "pqrst", then it will become "tpqrs" after one right rotation. Example: Input: P = "abfyg", Q = "gabfy" Output: 1 Explanation: If we cyclically rotate String P to the right once, it becomes "gabfy", which matches String Q. Thus, it is possible to convert String P to String Q. Input: The first line of the input contains an integer 'T', denoting the number of test cases. The first line of each test case contains the String 'P'. The second line of each test case contains the String 'Q'. Output: For each test case, print 1 if String 'P' can be cyclically rotated to form String 'Q', otherwise print 0. Print the result for each test case on a new line. Constraints: 1 ≤ T ≤ 10 1 ≤ |P|, |Q| ≤ 105 |P| = |Q| Strings 'P' and 'Q' consist only of lowercase English letters. Time Limit: 1 sec Note: You do not need to print anything; it is already handled. Just implement the given function. Follow Up: Can you solve this in O(N) time?

5. What is a string constant pool?