Tip 1: Python, Java, or C++ are the object-oriented languages you should choose and stick with. Use that specific language for DSA practice, and work in Code Studio as well.
Tip 2: Practice fundamental topics such as OS, SQL, DBMS, etc.
Tip 3: Try participating in competitive programming contests.
Tip 1: Complete at least two full-stack projects.
Tip 2: Demonstrate your problem-solving skills.



'arr '= [1,2,3,4,5]
'k' = 1 rotated array = [2,3,4,5,1]
'k' = 2 rotated array = [3,4,5,1,2]
'k' = 3 rotated array = [4,5,1,2,3] and so on.
Step 1: First I store the elements from index d to N-1 into the temp array.
Step 2: Then store the first d elements of the original array into the temp array.
Step 3: Copy back the elements of the temp array into the original array



Step 1: Create an array of 26
Step 2: Store frequency using Array[character - 'a'] formula
Step 3: Just print the array



The ‘ARR’ = [1, 2, -3, -4, 5], the subarray [5, 1, 2] has the maximum possible sum which is 8. This is possible as 5 is connected to 1 because ‘ARR’ is a circular array.
You have been given a circular path. There are N petrol pumps on this path that are numbered from 0 to N - 1 (Both inclusive). Each petrol pump has two values associated with it:
1)The amount of petrol that is available at this particular petrol pump.
2)The distance to reach the next petrol pump.
You are on a truck having an empty tank of infinite capacity. You can start the tour from any of the petrol pumps. Your task is to calculate the first petrol pump from where the truck will be able to complete the full circle or determine if it is impossible to do so.
You may assume that the truck will stop at every petrol pump and it will add the petrol from that pump to its tank. The truck will move one kilometre for each litre of petrol consumed.



1. String ‘s’, ‘t’ and ‘str’ consist of only lowercase English letters from ‘a’ – ‘z’.
2. String ‘s’ and ‘t’ are of same length.
Let s = “abc” , t = “xyz” and str = “xbc” then all strings that we can generate are “abc”, “abz”, “ayc”,”ayz”, “xbc”, “xbz”, “xyc”, “xyz” and smallest of all these is “abc”.
Step 1: I split the given string using space as the delimiter and stored it in a list.
Step 2: Then, I applied insertion sort based on the length of the strings.
Step 3: I included a condition for lexicographical sorting if two strings are of the same length.

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: