Competitive Programming 33??

Competitive Programming 33??

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

要查看或添加评论,请登录

Meghana Manchala的更多文章

  • Competitive Programming 61??

    Competitive Programming 61??

    Day 61: Counting the Number of Islands in an Image, Top K Frequent Words, Permutations II, LRU Cache Dear Developers!…

  • Competitive Programming 60??

    Competitive Programming 60??

    Day 60: Permutations,subsets,letter combi Hi everyone! ?? Today, I dedicated time to work on some exciting coding…

  • Competitive Programming 54??

    Competitive Programming 54??

    Day 54: Binary Search,Search in Rotated Sorted Array, Kth Largest Element in an Array, First Bad Version Dear…

  • Competitive Programming 53??

    Competitive Programming 53??

    Day 53: Counting the Number of Islands in an Image, Top K Frequent Words, Permutations II, LRU Cache Dear Developers!…

  • Competitive Programming 52??

    Competitive Programming 52??

    Day 52: Cookie Handout, Lemonade Change, Maximum Units on a Truck, Two-City Scheduling and Jump Game Hello Developers!…

  • Competitive Programming 56??

    Competitive Programming 56??

    Day 56: Square of Sorted Array, Remove Element, Reverse Only Letters, Pivot Index and Check If Array Is Sorted and…

  • Competitive Programming 50??

    Competitive Programming 50??

    Day 50: Implement Queue using Stacks, Design Circular Queue, Counting Bits, Partition Labels and Candy Dear Developers!…

  • Competitive Programming 49??

    Competitive Programming 49??

    Day 49: Binary Search,Search in Rotated Sorted Array, Kth Largest Element in an Array, First Bad Version Dear…

  • Competitive Programming 48??

    Competitive Programming 48??

    Day 48: Binary Search,Search in Rotated Sorted Array, Kth Largest Element in an Array, First Bad Version Dear…

  • Competitive Programming 47??

    Competitive Programming 47??

    Day 47: Binary Search,Search in Rotated Sorted Array, Kth Largest Element in an Array, First Bad Version Dear…

社区洞察

其他会员也浏览了