The Silicon Partners Coding Questions

The Silicon Partners Coding Questions with Solutions

In this page, you will find out The Silicon Partners Coding Questions and Answers asked in Online Assessments and Technical Interviews involved in the Hiring Process of the Company.

Go through this page to get more details like Job Profile, Job Location, CTC Offered, Steps involved in the recruitment process, etc. of the company.

r1rcm coding

About The Silicon Partners

TSP (The Silicon Partners) is a US Based IT Consulting Organization headquartered in California. TSP specialize in providing Consulting Services for enterprise technologies like SAP S/4HANA, SuccessFactors Human Experience Management (HXM), SAP Application Management Service, Robotic Process Automation (UiPath), AI / ML and Cloud.

With a global presence in over 10 countries and offshore development centres in Noida and Columbia, TSP has a global footprint with over 400 employees.

About The Silicon Partners Recruitment Process

The The Silicon Partners Recruitment Process consists of the following steps :

  1. Online  Assessment [ MCQ + Coding ]
  2. Technical Interview with the LEADs
  3. Discussion with BU Head 
  4. HR Round 

We have mentioned further details of the The Silicon Partners Recruitment Process in the following Tabular Form

The Silicon PartnersRelated Information
Position :Technical / Functional Trainee
Course :
  • B.Tech – CSE, IT,ECE , EEE , ME , CE
  • Eligible Batch – 2023
Eligibility Criteria / Academic Qualification Required :
  • 60% (10th , 12th and graduation)
  • No Current Backlogs.
Salary Offered and Terms
  • 3.55 LPA
  • Service Agreement: 2 Years
  • Notice Period: 3 months
Selection Process :
  1. Online Assessment 
  2. Technical Interview with head LEADs
  3. Discussion with BU Head.
  4. HR Interview
Joining Location :

Noida

Details about Online Assessment

  1. There will be question from 5 different sections:
    • Aptitude
    • Analitical Ability
    • Computer Fundamentals
    • Communication Skills
  2. Time Duration : 90 minutes

Skill Set Required

  • Excellent Commuication Skills
  • Learning Ability
  • Certification (Any SAP domain or RPA tool) is an added advantage

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

The Silicon Partners Coding Questions and Answers

Question 1: Stars Between Bars

Given a string s consisting of stars “*” and bars  “|” ,an array of starting indices  starIndex,and an array of ending indices endIndex,determine the number of stars between any two bars within the substrings between the two indices inclusive . NOTE that in this problem indexing starts at 1.

  • A Star is represented as an asterisk [*=ascii decimal 42]
  • A Bar is represented as a Pipe [“|”=ascii decimal 124]

Example

    s=’|**|*|’ 
    startIndex=[1,1]
    endIndex=[5,6]

  • For the first pair of indices (1,5) the substrings is “|**|*”  . There are 2 stars between a pair of bars
  • For the second pair of indices (1,6) the substring is  “|**|*|” and there are 2+1=3 stars in between the bars.
  • Both of the answers are returned to the array [2,3].

Constraints

  • 1<=n<=105
  • 1<=StartInde[i]<=endIndex[i]
  • Each Character of s is either “*” or “|”

Input Format for Custom testing

First line contains a string S the next line contains an integer n , the no.of elements in startIndex. Each line i of the n subsequent lines contains an integer of startIndex.the next line contains an integer n , the no.of elements in endIndex. Each line i of the n subsequent lines contains an integer of endindex  

Sample Input

    *|*|  → s=”*|*|”
    1 → startindex[] size=1
    1 → startindex= 1
    1 → endindex[] size=1
    3 → endindex=3

Sample output:

    0

Explanation :

The substring from index =1 to index=3 is “*|*” . there is no consecutive pair of bars in this string.

Question 2 : Share Holder (R -> Hard)

Problem Statement  :
Ratan is a crazy rich person. And he is blessed with luck, so he always made the best profit possible with the shares he bought. That means he bought a share at a low price and sold it at a high price to maximize his profit. Now you are an income tax officer and you need to calculate the profit he made with the given values of stock prices each day. You have to calculate only the maximum profit Ratan earned.
Note that:
Ratan never goes into loss.

Example 1 :
Price=[1,6,2]
Ratan buys it on the first day and sells it on the second.
Example 2 :
Price=[9,8,6]

The Price always went down, Ratan never bought it.

Input Format:
First line with an integer n, denoting the number days with the value of the stack
Next n days, telling the price of the stock on that very day.

Output Format:
Maximum profit done by Ratan in a single line.
Constraints:
Number of days <=10^8

Sample Input for Custom Testing:

STDIN
7
1
9
2
11
1
9
2

Sample Output :

10

Explanation :

The maximum profit possible is when Ratan buys it in 1 rupees and sells it in 11.

Question 3 : Password Creation

Problem Statement: A password manager wants to create new passwords using two strings given by the user, then combined to create a harder-to- guess combination. Given two strings,interleave the characters of the strings to create a new string. Beginning with an empty string, alternately append a character from string a and from string b. If one of the strings is exhausted before the other, append the remaining letters from the other
string all at once. The result is the new password.

Example :

  • If a = ‘hackerrank’ and b = ‘mountain’,
  • The result is hmaocuknetrariannk.

Function Description :

  • Complete the function newPassword in the editor below.

Parameter(s):

  • Str : string a
  • Str : string b
  • Returns:
  • Str: new password using two strings

Sample input:

  • abc → a=”abc”
  • def → b=”def”

Sample output 0:

  • Adbecf

Question 4 

You just received another bill which you cannot pay because you lack the money.

Unfortunately, this is not the first time to happen, and now you decide to investigate the cause of your constant monetary shortness. The reason is quite obvious: the lion’s share of your money routinely disappears at the entrance of party localities.

You make up your mind to solve the problem where it arises, namely at the parties themselves. You introduce a limit for your party budget and try to have the most possible fun with regard to this limit.

You inquire beforehand about the entrance fee to each party and estimate how much fun you might have there. The list is readily compiled, but how do you actually pick the parties that give you the most fun and do not exceed your budget?

Write a program which finds this optimal set of parties that offer the most fun. Keep in mind that your budget need not necessarily be reached exactly. Achieve the highest possible fun level, and do not spend more money than is absolutely necessary.

Input

  • The first line of the input specifies your party budget and the number n of parties.
  • The following n lines contain two numbers each. The first number indicates the entrance fee of each party. Parties cost between 5 and 25 francs. The second number indicates the amount of fun of each party, given as an integer number ranging from 0 to 10.
  • The budget will not exceed 500 and there will be at most 100 parties. All numbers are separated by a single space.
  • There are many test cases. Input ends with 0 0.

Output

  • For each test case, your program must output the sum of the entrance fees and the sum of all fun values of an optimal solution. Both numbers must be separated by a single space.

Example

  • Sample input:
    50 10
    12 3
    5 8
    16 9
    16 6
    10 2
    21 9
    18 4
    12 4
    17 8
    18 9
    50 10
    13 8
    19 10
    16 8
    12 9
    10 2
    12 8
    13 5
    15 5
    11 7
    16 2
    0 0
  • Sample output:
    50 29
    48 32

Question 5 :Class Monitor

Problem Statement  :

After JEE Mains, some students got admission into an engineering college. Now there is a class consisting of such n students, and the HOD came to say it is time to select the class monitor. But He never gets all of them at one time. So he brought a register, every time he gets someone with less rank than the previous time he cut the name and wrote the name of the student and the rank.

For a given number of ranks he gets each time, you have to predict how many names are cut in the list.

Constraints:

  • Number of Visiting<=10^9
  • ranks <=10000

Input Format:

  • Number of Visiting N in their first line
  • N space separated ranks the HOD gets each time

Output Format:

Number of ranks cut in the list

Sample Input:

  • 6
  • 4 3 7 2 6 1

Sample Output:

  • 3

FAQs related to The Silicon Partners Coding Questions

Question 1: What should I expect during the interview process?

During the interview process at TSP, you can expect to be asked a series of questions related to your experience, skills, and qualifications . You will be showcasing your  skills like:

  • Programming languages, including C++, Java, and C
  • Experience in building libraries and APIs.
Question 2: Is Coding questions asked in The Silicon Partner Recruitment Process?

Yes, Coding Questions are included in Online Assessment and Technical Interview of TSP.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription