Tip 1 : Always revise the core subjects like operating system, oops, dbms 2-3 days before interview and not before that.
Tip 2 : Cover Graph, DP questions Since most company ask question from/ around them
Tip 3 : Deploy the projects you have made, so it can be useful in real life for other people
Tip 1 : Make sure all the links you provide for github/ your coding profile are clickable
Tip 2 : Mention project in crisp points
Medium level 1 coding questions - at night (8pm - 8:30pm)


1. ‘X’ >= ‘N’
2. ‘X’ is a prime number.
3. ‘X’ is a palindrome number.
An integer except ‘1’ is a prime number, if and only if its divisors are 1, and the number itself only. For example, 2, 3, 11 are prime numbers but 1, 4, 8 9 are not.
An integer is a palindrome number if the number remains the same after reversing all its digits. For example, 121, 1, 1331 are palindrome numbers but 12, 234234 are not.
it was in the evening



1. Constructor:
It initializes the data members(queues) as required.
2. push(data) :
This function should take one argument of type integer. It pushes the element into the stack and returns nothing.
3. pop() :
It pops the element from the top of the stack and, in turn, returns the element being popped or deleted. In case the stack is empty, it returns -1.
4. top :
It returns the element being kept at the top of the stack. In case the stack is empty, it returns -1.
5. size() :
It returns the size of the stack at any given instance of time.
6. isEmpty() :
It returns a boolean value indicating whether the stack is empty or not.
Query-1(Denoted by an integer 1): Pushes an integer data to the stack. (push function)
Query-2(Denoted by an integer 2): Pops the data kept at the top of the stack and returns it to the caller. (pop function)
Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the top of the stack but doesn't remove it, unlike the pop function. (top function)
Query-4(Denoted by an integer 4): Returns the current size of the stack. (size function)
Query-5(Denoted by an integer 5): Returns a boolean value denoting whether the stack is empty or not. (isEmpty function)
Operations:
1 5
1 10
2
3
4
Enqueue operation 1 5: We insert 5 at the back of the queue.
Queue: [5]
Enqueue operation 1 10: We insert 10 at the back of the queue.
Queue: [5, 10]
Dequeue operation 2: We remove the element from the front of the queue, which is 5, and print it.
Output: 5
Queue: [10]
Peek operation 3: We return the element present at the front of the queue, which is 10, without removing it.
Output: 10
Queue: [10]
IsEmpty operation 4: We check if the queue is empty.
Output: False
Queue: [10]
Method 1 (By making push operation costly)
This method ensures that the newly entered element is always at the front of ‘q1’ so that pop operation dequeues from ‘q1’. ‘q2’ is used to put every new element in front of ‘q1’.
push(s, x) operation’s steps are described below:
Enqueue x to q2
One by one dequeue everything from q1 and enqueue to q2.
Swap the names of q1 and q2
pop(s) operation’s function is described below:
Dequeue an item from q1 and return it.
What is deadlock
Tip 1: Atleast complete interview bit questions thoroughly
answer: A deadlock is a situation in which two computer programs sharing the same resource are effectively preventing each other from accessing the resource, resulting in both programs ceasing to function.
What is memory management unit and its benefits ?
Tip 1: Atleast complete interview bit questions thoroughly
answer: Memory Management Unit (MMU) is used to enable the system to run multiple tasks, as independent programs running in their own private virtual memory space.
How do we overload i++ and ++i
in the evening
Your Introduction
Tip 1: Be confident about yourself, and don't put in any false information
Will you relocate if needed
Tip 1: List the benefits of joining Cisco, and Why Cisco will be a great place to work.
Tip 2 : always study about a company before sitting in HR
Why do you want to join Cisco ?
Tip 1: Be honest about this, I said that I ll be seeing myself as a SDE-2 at Cisco
Where do you see yourself in next 5 years
Tip 1: be honest and confident

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: