Competitive Programming 33??
Meghana Manchala
| B-tech in Software Engineering | Apollo x Kalvium | Second year |
Day 33: Max_length_of_concatenation_subsequence unique, permutation ,Largest Perimeter Triangle,Check if One String Swap Can Make Strings Equal, Daily Temperatures and Min Stack
Today, all about practice problems on Linear-Scan, backtracking, Monotonic Stack and two stack.
Here is a brief overview of problem that I worked on:
1.Can One String Swap Similar Strings:
I checked if two strings can be made equal by any swap of any two letters in a string. It's more like a wordplay where an insignificant switch makes all the difference!
2. Daily Temperatures:
In this problem, I was tracking how many days it would take to raise the temperature by a few degrees. In this, I used a stack where I was tracking days and comparing temperatures down the line-that means basically pre-empting a weather forecast!
3. Largest Perimeter Triangle:
I had to choose three numbers from a list in such a way that the largest perimeter of the triangle is formed. A rule was that the sum of any two sides has to be greater than the third side.
领英推荐
4.Max Length Concatenation of Unique Substrings :
Find the maximum length of a concatenated string made from unique substrings. Another nice little bit of backtracking and set manipulation-ensuring that all of the concatenation was comprised of distinct characters.
5. Min Stack:
I built a stack that not only supports push and pop but also tracks the smallest value at any time! It was fun figuring out how to keep track of the minimum element even when removing items
"Code is Poetry" - WordPressSlogan
I hope you all had as much fun solving as I did. Every one of them gives us another opportunity to dig deeper into changing management and optimization. Let's begin this journey, curious and determined. New adventures and exciting discoveries await us all!
Happy coding! See you on Day 34!????
#CodeQuest #CodingAdventures #ProblemSolving #CodeNewbie #DevJourney #ChangeMakers #EmbraceChange #AgileMindset #AdaptAndOvercome #InnovationInAction #OptimizeYourCode #EfficiencyMatters #SmartCoding #PerformanceBoost #TechOptimization #StayCurious #KeepLearning #ExploreTheUnknown #UnlockYourPotential #DiscoverTogether