Tip 1: Practice at least 150 questions.
Tip 2: Complete at least 2 projects.
Tip 3: Take mock interviews.
Tip 1: Keep the resume simple.
Tip 2: Should have at least two projects.
Logical Ability - 12
Quantitative Ability - 12
English -12
Essay Writing - 1
Computer Programming -12,
Computer Science -12,
Personality Test - 72
String 'S' is NOT case sensitive.
Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Step 1: Preprocessing the String
I began by addressing the requirement to ignore spaces, punctuation, and capitalization. To do this, I needed to preprocess the string. I removed all non-alphanumeric characters and converted the remaining characters to lowercase. This ensured that comparisons were made only between relevant characters.
Step 2: Checking for Palindrome
With the preprocessed string ready, the next step was to check if it was a palindrome. A straightforward approach was to compare the string with its reverse.
Step 3: Full Solution Implementation
Combining both steps, I implemented the full solution. Here is the complete function along with an example of usage:
Suppose given input is "abacb", then the length of the longest substring without repeating characters will be 3 ("acb").
Step 1: Understand the Problem and Plan the Approach
To solve this problem, I decided to use a sliding window approach with two pointers. The idea is to maintain a window that contains no repeating characters and move the window across the string to find the longest such substring.
Step 2: Implement the Sliding Window Technique
I used a set to keep track of characters in the current window and two pointers, left and right, to denote the boundaries of the window. I moved the right pointer to expand the window and added characters to the set. If a duplicate character was found, I moved the left pointer to shrink the window until no duplicates remained.
Step 3: Test the Solution
I tested the function with different input strings to ensure it worked correctly.
Reading and Grammar 20 mins (shared)
Comprehension and listening 20 mins (shared)
Speaking 20 mins (shared)
It was a Technical round in which he asked for everything mentioned in the resume.
In the Hr round, Hr asked some personal questions like my journey and questions related to the projects.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which array operation has O(n) worst-case time complexity?