Tip 1: Regularly participate in coding challenges on coding platforms to enhance problem-solving skills and gain exposure to diverse coding scenarios.
Tip 2: Engage in collaborative coding projects focusing on real-world applications. This demonstrates practical coding abilities and enhances teamwork and project management skills, making you more appealing to potential employers.
Tip 1: Highlight quantifiable achievements and results in your resume, showcasing the impact of your contributions in previous roles, such as increased efficiency, cost savings, or successful project outcomes.
Tip 2: Tailor your resume for each job application, emphasizing relevant skills and experiences that align with the position's specific requirements. This customization enhances your chances of standing out to recruiters and aligning with the role's needs.



Suppose given input is "abacb", then the length of the longest substring without repeating characters will be 3 ("acb").
I started with a basic approach and then kept on optimising it. I don't remember the exact things I did but this is the approach that I follow in general.



1. Push(num): Push the given number in the stack if the stack is not full.
2. Pop: Remove and print the top element from the stack if present, else print -1.
3. Top: Print the top element of the stack if present, else print -1.
4. isEmpty: Print 1 if the stack is empty, else print 0.
5. isFull: Print 1 if the stack is full, else print 0.
We perform the following operations on an empty stack which has capacity 2:
When operation 1 1 is performed, we insert 1 in the stack.
When operation 1 2 is performed, we insert 2 in the stack.
When operation 2 is performed, we remove the top element from the stack and print 2.
When operation 3 is performed, we print the top element of the stack, i.e., 3.
When operation 4 is performed, we print 0 because the stack is not empty.
When operation 5 is performed, we print 0 because the stack is size 1, which is not equal to its capacity.
Tip 1: Practice more and more programs of linked lists, stacks and queues



Words are separated by one or more whitespace characters.
For the given string “Madam oyo cat”, “Madam”, and “oyo” are the palindrome words
A string is palindrome if it remains the same on reading from both ends. I've found the length of the string run loop and compared characters from the first and last one by one.



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
You are given an array/list ARR consisting of N integers. Your task is to find all the distinct triplets present in the array which adds up to a given number K.
An array is said to have a triplet {ARR[i], ARR[j], ARR[k]} with sum = 'K' if there exist three indices i, j and k such that i!=j, j!=k and i!=j and ARR[i] + ARR[j] + ARR[k] = 'K'.



Let’s say you have a binary tree as follows:-

You do not need to print anything; it has already been taken care of. Just implement the function.
first to traverse the tree, starting from the root till every node, check if its left subtree is a leaf. If it is, then add it to the result.



1. A word is a sequence of one or more lowercase characters.
2. Words are separated by a single whitespace character.
For the given string 'A' = “coding ninjas coding ninjas” and 'B' = “data structures and algorithms”, so both the word 'coding' and 'ninjas' are not present in string 'B' and occur two times each, but the word “coding” is lexicographically smaller than the word “ninjas”. So the answer is “coding”.
You are given two strings 'A' and 'B' of words. Your task is to find out the most frequent and lexicographically smallest word in string 'A', which is not present in string 'B'. If no such word is present in 'A', then return -1.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?