[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Interview Questions and Answers :: Programming Qs. in TR

    1 / 14

    Wrtie a program to determining the length of the smallest substring which is having a maximum number of distinct characters. First tell me about you appraoch and then write your program.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    2 / 14

    Write a program to print the right angle triangle pattern with stars(*) using a single loop

    (
    *
    **
    ***
    ****
    )
    Like this
    Answer:

    No Discussion on this question yet!

    Please Login First :

    3 / 14

    Given an array of positive and negative integers, segregate them in linear time and constant space. The output should print all negative numbers, followed by all positive numbers.
    Input: [9, -3, 5, -2, -8, -6, 1, 3]
    Output: [-3, -2, -8, -6, 5, 9, 1, 3]
    Answer:

    No Discussion on this question yet!

    Please Login First :

    4 / 14

    Write a program to find the missing number in array of elements from 1 to N .Size of the array is N-1
    Answer:

    No Discussion on this question yet!

    Please Login First :

    5 / 14

    Write a program to reverse the first k nodes of a linked list. k can be greater than the length of the linked list.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    6 / 14

    Maximum sum subarray with negative numbers and also print the subarray.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    7 / 14

    Write a program to remove subarray of minimum size such that the sum of the remaining array is divisible by a given number k.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    8 / 14

    How would you approach the problem of printing the second last node in a Linked list? Only the approach was expected.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    9 / 14

    Given a tree, do level order traversing and store nodes in right to left manner. Right to left means, on each level first store the last element of that level then 2nd last and so on.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    10 / 14

    Given an array of numbers, arrange them in a way that yields the largest value. For example, if the given numbers are {54, 546, 548, 60}, the arrangement 6054854654 gives the largest value.
    Answer:

    No Discussion on this question yet!

    Please Login First :