Tip 1 : Be confident
Tip 2 : Focus on data structures and algorithms(if you have less than 6 months)
Tip 3 : Focus on competitive programming(if you have more than 6 months)
Tip 4 : Practice at least 200 questions of various topics on leetcode and also start doing contest on various platforms.
Tip 1 : You shouldn't lie on your resume.
Tip 2 : Write only those projects about which you are confident.
For the given string “what we think we become”
“what”,” think”, and “become” occurs 1 time, and “we” occurs 2 times in the given string.
I solved using map
Anagrams are defined as words or names that can be formed by rearranging the letters of another word. Such as "spar" can be formed by rearranging letters of "rasp". Hence, "spar" and "rasp" are anagrams.
'triangle' and 'integral'
'listen' and 'silent'
Since it is a binary problem, there is no partial marking. Marks will only be awarded if you get all the test cases correct.
I did this question with the help of map.
I split the string on the basis of space and then counted the frequency of each word using map.
If the input string is "abbc", then all the possible palindromic substrings would be: ["a", "b", "b", c", "bb"] and hence, the output will be 5 since we have 5 substrings in total which form a palindrome.
A string is said to be a 'Palindrome' if it is read the same forwards and backwards.
For example, “abba” is a palindrome, but “abbc” is not.
A 'Substring' is a contiguous sequence of characters within a string.
For example, "a", "b", "c", "ab", "bc", "abc" are substrings of "abc".
Used simple approach
Find 4th highest salary from the table.
Tip 1 : Do practice sql queries from leetcode.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you write a single-line comment in C++?