Open In App

Fastenal Interview Experience (On-Campus)

Fastenal visited our campus for Full Time Recruitment. There were 3 rounds in total.

Difficulty Level: Medium



Round 1: Online Coding round (90 Minutes)

Coding Questions(30 Mins)



50 MCQ (60 Mins)

There were 2 Coding Questions based on String.

1. String Letter Search: You are given a String X and a string containing single character Y. Your task is to find the largest distance between any two occurrences of the character Y in string X.

The Distance is defined by the no of distinct characters between any two occurrences of char Y in string X (Exclude whitespaces).

If there is no occurrences or only one occurrences of the given character, the function should return -1.

Example:

Input1: my name is ranary

Input2: a

Output: 7

2. Passwords: Find how many Distinct passwords are there in total:

Details of password: Each password is a string of characters from a to z (small letters).

Two passwords say Pass1 and Pass2, are said to be same if Pass2 can be obtained by swapping the ith character with jth character in Pass1 where (i+j)%2==0.

Example:

Input1: 2

Input2: {abcd,bcad}

Output: 2

“bcad” cannot be obtained from “abcd” under given conditions. Hence, 2 distinct passwords.

50 MCQ’s of CS Core Subjects. (Aptitude, Verbal Ability, OOPS, Operating Systems, DBMS, Networking, Java).

Round 2: Technical Round (1 hour 15 Mins)

After 30 mins, I received a call for next round.

Round 3: HR (30 Mins)

Wished me All the Best.

Tips:

Article Tags :