Tip 1: Strengthen your DSA problem-solving skills.
Tip 2: Do at least 200 questions on coding platforms.
Tip 3: Keep at least 2 projects on your resume.
Tip 1: Have some projects on your resume.
Tip 2: Put the things highlighted on the resume that match the requirements of the company.
The interview timing was okay. The environment was also so good. The interviewer was very supportive.



Let 'S'= “abAb”.
Here the characters ‘a’ and ‘A’ have frequency 1 and character ‘b’ has frequency ‘2’.
Therefore the sorted string is “bbAa”.
Stepwise solution for the given problem:
1. Initialize an empty dictionary to store the frequency of each character in the string.
2. Loop through the characters in the given string str.
3. For each character encountered:
a. Check if it exists in the dictionary.
b. If it does not exist, add it to the dictionary with a frequency of 1.
c. If it exists, increment its frequency by 1.
4. After processing all characters in the string, you will have a dictionary containing the frequency of each character in the order of their occurrence in the string.
5. Iterate through the dictionary and print the characters along with their frequencies in the given format.



1. There are no 2 adjacent elements having same value (as mentioned in the constraints).
2. Do not print anything, just return the index of the peak element (0 - indexed).
3. 'True'/'False' will be printed depending on whether your answer is correct or not.
Input: 'arr' = [1, 8, 1, 5, 3]
Output: 3
Explanation: There are two possible answers. Both 8 and 5 are peak elements, so the correct answers are their positions, 1 and 3.
Stepwise solution for finding a peak element in an array without coding:
1. Initialize two pointers, left and right, to the first and last indices of the array, respectively.
2. Enter a loop until the left pointer is less than or equal to the right pointer.
3. Calculate the mid index as (left + right) / 2.
4. Check if the element at the mid index is a peak element:
If the mid element is greater than or equal to its neighbors, i.e., A[mid] >= A[mid-1] and A[mid] >=
A[mid+1], then A[mid] is a peak element.
If A[mid-1] > A[mid], move the right pointer to mid - 1.
If A[mid+1] > A[mid], move the left pointer to mid + 1.
5. Repeat steps 3-4 until a peak element is found or the left pointer becomes greater than the right pointer.
6. If a peak element is found, return its index.
7. If no peak element is found, it means the array is either entirely increasing or decreasing. In this case, you can return any index as there might be multiple peak elements.
It was a CTO round. It was at 10 am. He asked me 1 coding question and asked about my background.



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".
1. Sort the given integer array nums in ascending order. Sorting helps in avoiding duplicate triplets and allows us to find triplets efficiently.
2. Initialize an empty list to store the result, which will contain the triplets whose sum is zero.
3. Iterate through the sorted array using a loop from i=0 to i=n-3, where n is the size of the array.
4. For each element at index i, consider it as the first element of the potential triplet.
5. Use two-pointers approach (left and right pointers) inside the loop for the remaining subarray after index i.
6. The left pointer (j) starts at i+1, and the right pointer (k) starts at the last element of the array.
7. Calculate the sum curr_sum of the elements at nums[i], nums[j], and nums[k].
8. Check the following conditions:
If curr_sum is equal to 0, add the triplet [nums[i], nums[j], nums[k]] to the result list.
If curr_sum is less than 0, increment the left pointer (j) to explore larger values.
If curr_sum is greater than 0, decrement the right pointer (k) to explore smaller values.
9. Continue steps 7-8 until the left pointer (j) is less than the right pointer (k).
10. Move the index i until the next unique element is encountered to avoid duplicate triplets.
11. Repeat steps 4-10 until all elements have been processed.
12. Return the result list containing the triplets whose sum is zero.
What are ACID Properties? Why they are important? (Learn)
Answer - ACID properties are fundamental principles in database management that ensure reliable and consistent transactions.
Atomicity ensures that a transaction is treated as a single unit, where all operations are completed successfully, or none are applied.
Consistency maintains the validity of the database, transitioning from one valid state to another after a transaction.
Isolation ensures each transaction is executed independently, isolated from other transactions until committed.
Durability guarantees that committed transactions are permanent and will survive system failures.
What tech-stack have you used in your projects?
Tip 1 : Be confident while explaining your resume projects.
Tip 2 : Keep the project in running state beforehand.

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