Tip 1 - Practice At least 150 Questions of DS algo
Tip 2 - Try to do application based projects
Tip 3 - Optimize your answers to reduce run time
Tip 1 : Be true on your resume
Tip 2 : Make your resume short and crisp
Tip 3 : Include information sequentially.
MCQs- Aptitude + Quantitative
2 questions came in coding round



Cost of entries where j < i will be represented as INT_MAX VALUE which is 10000 in the price matrix.
If ‘N’ = 3
'PRICE[3][3]' = {{0, 15, 80,},
{INF, 0, 40},
{INF, INF, 0}};
First, go from 1st station to 2nd at 15 costs, then go from 2nd to 3rd at 40. 15 + 40 = 55 is the total cost.It is cheaper than going directly from station 1 to station 3 as it would have cost 80.
The output will be 55.



Given
N = 5
Strings are ["aaa", "hack", "zzz", "abcd", "szxp"]
Approach
There must be a minimum of 3 strings that Alice could have started with to end up with the given final array. Note that "aaa" and "zzz" are encodings of each other, so at least one of them must have been present in the original array. Similarly, at least one of "hack" and "szxp" must have been present. "abcd" does not have its encoding in the final array so it is guaranteed to be present in the original array and did not get encoded.
Here are all the 9 ways that Alice could have ended up with the final array:
Alice started with 5 strings: ["aaa", "hack", "zzz", "abcd", "szxp"] and none of them got encoded.
Alice started with 4 strings: ["aaa", "hack", "abcd", "szxp"] and only "aaa" got encoded to "zzz".
Alice started with 4 strings: ["zzz", "hack", "abcd", "szxp"] and only "zzz" got encoded to "aaa".
Alice started with 4 strings: ["zzz", "hack", "abcd", "aaa"] and only "hack" got encoded to "szxp".
Alice started with 4 strings: ["zzz", "szxp", "abcd", "aaa"] and only "szxp" got encoded to "hack".
Alice started with 3 strings: ["aaa", "szxp", "abcd"] with "aaa" and "szxp" getting encoded to "zzz" and "hack" respectively.
Alice started with 3 strings: ["zzz", "szxp", "abcd"] with "zzz" and "szxp" getting encoded to "aaa" and "hack" respectively.
Alice started with 3 strings: ["aaa", "hack", "abcd"] with "aaa" and "hack" getting encoded to "zzz" and "szxp" respectively.
Alice started with 3 strings: ["zzz", "hack", "abcd"] with "zzz" and "hack" getting encoded to "aaa" and "szxp" respectively.
The minimum number of strings Alice could have started with is 3, so the answer is 3.
Basic Hr Questions were asked. I was also asked about some questions from DS algo + from my projects. I was also asked questions from DBMS


‘S’ = “aabcd”, ‘M’ = 2, ‘A’ = [0, 1]
After 1st operation i.e, reversing from [0, 4], ‘S’ = “dcbaa”.
After 2nd operation i.e, reversing from [1, 3], ‘S’ = “dabca”.
Hence, the answer is “dabca”.
1.Initiate
2.The string which is to be reversed is declared.
3.Get the length of the string.
4.Start a loop and then swap the position of the array elements.
5.Keep the exchanged positions.
6.Print the reversed string.



1. ‘.’ matches to any single character.
2. ‘*’ matches to zero or more of the preceding element.
1. You have to match the entire string with the pattern given.
2. Both the strings, 'S' and 'P' contain only lower-case alphabets.
3. Only the pattern will contain additional characters ‘*’ and ‘.’ along with alphabets.



1. Both STR and PTR consist of English uppercase letters.
2. Length of string 'STR' will always be greater than or equal to the length of string ‘PTR’.
3. In case, there is no anagram substring, then return an empty sequence.
4. In case of more than one anagrams, return the indices in increasing order.

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: