Tip 1 : Do at least 2 good projects and make an attractive resume mentioning all your skills in the best possible way(Don't include any False commitments)
Tip 2 : Practice easy to medium level coding questions from geeks for geeks or Leetcode.
Tip 3 : Prepare everything mentioned in your resume properly including Java, SQL.
Tip 1: Must know everything in the resume(don't put false things)
Tip 2: Not more than 1 page



I approached this problem in three steps -
(i) Search all positive integers, starting from 1 in the given array. We may have to search at most n+1 numbers in the given array. So this solution takes O(n^2) in the worst case.
(ii) Used sorting to solve it in lesser time complexity. We can sort the array in O(nLogn) time. Once the array is sorted, then all we need to do is a linear scan of the array. So this approach takes O(nLogn + n) time which is O(nLogn).
(iii) I also suggested a solution using hashing. We can build a hash table of all positive elements in the given array. Once the hash table is built. We can look in the hash table for all positive integers, starting from 1. As soon as we find a number which is not there in hash table, we return it. This approach may take O(n) time on average, but it requires O(n) extra space.



If any lowercase or uppercase letters remains left after alternate positioning, then append them at the last of the string in sorted order.
If the given string STR = “rDaBfS” then after sorting STR = “aBfDrS”. In the sorted string, lowercase letters a,f,r, and uppercase letters B, D, S are in sorted order and alternate positions.
Tip 1 : Question is not that tough as it involved no logic it was pretty straightforward but felt a bit lengthy and need to handle cases like empty string and uppercase letters.
Tip 2 : Focus while you solve



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".
Sort the array
loop with 3 pointers - current(i) , left , right - calculate the sum
sum > 0. move right pointer closer
sum < 0. move left pointer away
sum = 0. add all 3 pointer's value to set
Here set is used to remove duplicate entry of values
Time Complexity 0(nlogn)-sorting + 0(n*n) ~~ O(n^2)
Space complexity - 0(n)



• The reference to the head of the linked list is not given.
• The node to be deleted is not a tail node.
• The value of each node in the Linked List is unique.
• It is guaranteed that the node to be deleted is present in the linked list.

Copy data of the next node to the current node
It's clear that The task question is wrong. You cannot delete the node.
Basically, instead of ONLY deleting the provided node we are not just doing it but CORRUPT the next node. It's a bad question wording (without clarification about options) and a bad solution. In my opinion, the correct answer for the interview is: "You CANNOT do this by having the node reference only. BUT we can make very similar operation by corrupting the next node. Although it's possible I don't recommend this solution for production applications.
Tell me about yourself.
Why do you want to join Acko rather than big Tech MNCs?
What are your hobbies?
Tip 1: Always show them you are only focused on learning.
Tip 2: Also make them feel that you will stay longer in their company

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?