Jobs
Interviews
Interview Questions for Think Future Technologies

1. Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

2. Find the nth prime number.

3. Can you provide an example of how to use pointers in C/C++ and discuss different concepts related to them?

4. What are some negative test scenarios for a pen?

5. Split Array with Equal Sums Problem Statement Given an array 'ARR' of size 'N', determine if there exists a triplet (i, j, k) satisfying the conditions: 0 < i , i + 1 < j , j + 1 < k and k < N - 1, such that the sums of the subarrays [0, i - 1], [i + 1, j - 1], [j + 1, k - 1], [k + 1, N - 1] are equal. Example: Input: ARR = [1, 2, 3] Output: False Example Explanation: The possible subarrays of 'ARR' are {1}, {2}, {3}, {1, 2}, {2, 3}, {1, 2, 3}. No such triplet satisfying the required condition exists in this case. Constraints: 1 ≤ T ≤ 5 1 ≤ N ≤ 10 ^ 3 -10 ^ 6 ≤ ARR[i] ≤ 10 ^ 6 Note: An array c is a subarray of array d if c can be obtained from d by deletion of several elements from the beginning and several elements from the end. Assume that the array has zero-based indexing. Input format: The first line of input contains an integer ‘T’ representing the number of test cases. Each test case consists of: The first line: An integer ‘N’ indicating the size of the array. The second line: 'N' space-separated integers representing the elements of the array. Output format: For each test case, print 'True' if such a triplet exists; otherwise print 'False'. Output is presented as separate lines for each test case. Note: You are not required to take input or print anything. Just implement the function.

cta

Start Your Job Search Today

Browse through a variety of job opportunities tailored to your skills and preferences. Filter by location, experience, salary, and more to find your perfect fit.

Job Application AI Bot

Job Application AI Bot

Apply to 20+ Portals in one click

Download Now

Download the Mobile App

Instantly access job listings, apply easily, and track applications.

Job Titles Overview