Tip 1 : Never give up on coding contests
Tip 2 : Consistency in programming is key to success
Tip 1 : Bold the numbers (accuracy,percentage) etc in resume
Tip 2 : Highlight action verbs in description of your project
It was in afternoon. Online test with video and audio on. Interviewer was interactive



1. Only the space character ' ' is treated as a whitespace.
2. All characters other than leading whitespace or digits are considered.
Input: 45rohit12
Output: 45
Explanation:
Leading Whitespace: Leading whitespace characters (" ") are ignored.
Numeric Portion: The numeric portion starts with the digit "4".
Reading Numeric Characters: The algorithm reads "4" and "5" to form "45".
End of Numeric Portion: The numeric portion ends at "r", non-numeric characters are skipped.
Parsing Result: "45" is parsed into the integer value 45, the final result.



Peeking Iterator (int arr[]): Initialize the object with the given array element.
int next(): Returns the next element and moves the pointer to the next element.
bool hasNext(): Return true if there is still an element in the array that otherwise returns false.
int peek(): Return the next element in the array but don’t move the pointer to the next element.
0 ‘array/list’ - Initialize the object with the given array element.
1 - Return the next element and move the pointer to the next element.
2 - Return true if there are elements in the array, otherwise return false.
3 - Perform a peek operation in the array.
0 3 7 9 10
1
2
3
Here we have 4 queries:
Firstly the query is of type 0. Sp, an object will be created with the list [7,9,10], and the pointer will be at 7.
Then the next query is 1 so we will return 7 and the pointer will move to 9.
Then the next query is 2 and there are elements in the array so we will return 'True'.
The last query is 3. So, we will just return 9 by not moving the pointer ahead.
Only the first query will be of type 0.
You can't directly access the array, instead, you will be given access to a separate iterator class.
It was in afternnon , occured online. Interviewer was interactive


1 ‘X’ N: Enqueue element ‘X’ into the end of the nth queue. Returns true if the element is enqueued, otherwise false.
2 N: Dequeue the element at the front of the nth queue. Returns -1 if the queue is empty, otherwise, returns the dequeued element.
Please note that Enqueue means adding an element to the end of the queue, while Dequeue means removing the element from the front of the queue.
It was in afternoon. Online test with video and audio on. Interviewer was interactive
Tell me how you will handle it if suddenly the priorities of a project were changed?
What is your biggest achievement so far?
How would you rate yourself on a scale of 1 to 10?
What are your greatest strengths and weaknesses?
Tip 1 : Be honest with answers
Tip 2 : Be interactive with interviewer

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?