Competitive Programming @daily1interviewprogram Channel on Telegram

Competitive Programming

@daily1interviewprogram


Solving competitive Programming Questions one day at a time.

Group link:
https://t.me/daily1interviewprogram

Please forward it to your friends

Competitive Programming (English)

Are you passionate about problem-solving and algorithms? Do you thrive on the thrill of competition? If so, then you've come to the right place! Introducing our Telegram channel 'Competitive Programming' where we challenge ourselves to solve complex programming questions one day at a time. This channel, with the username @daily1interviewprogram, is dedicated to all the coding enthusiasts out there who want to improve their problem-solving skills and get better at competitive programming. Each day, we share a new programming question that will push your boundaries and help you think outside the box. By joining our channel, you will not only have the opportunity to test your skills and compete with others but also learn new techniques and approaches to problem-solving. The camaraderie and support within our community will inspire you to keep pushing yourself and striving for excellence. Whether you are a beginner looking to enhance your coding skills or an experienced programmer wanting to stay sharp, 'Competitive Programming' is the perfect platform for you. With regular practice and dedication, you will see a significant improvement in your problem-solving abilities and coding efficiency. Don't miss out on this exciting opportunity to challenge yourself, learn from others, and connect with like-minded individuals who share your passion for competitive programming. Join our channel today and start your journey towards becoming a top-notch coder. Together, we can conquer any coding challenge that comes our way! To join our group, simply click on the following link: https://t.me/daily1interviewprogram and don't forget to forward it to your friends who are also eager to test their coding skills. Let's elevate our programming game together and achieve new heights of success in the world of competitive programming!

Competitive Programming

03 Mar, 03:38


Day 35 Question: Rain water trapping in C++

Given *n* non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
Input: [0,1,0,2,1,0,1,3,2,1,2,1]

Output: 6


Before solving this problem, please take a look at โ€œContainer with most water (https://www.prodevelopertutorial.com/find-the-container-with-most-water-explanation-with-diagram-and-solution-in-cpp-language/)โ€ problem. There I have explained in detail, how two pointers work.

Solution:
https://www.prodevelopertutorial.com/rain-water-trapping-in-c/

Competitive Programming

01 Mar, 03:28


Group Anagrams when given an array of strings in C++

Example:

Input: ["eat", "tea", "tan", "ate", "nat", "bat"],

Output:
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]
This problem can be solved easily using Maps.
The solution involves 2 steps:
1. Sort the element and make it as the key.
2. Take the value and place it in the key.
Solution:
https://www.prodevelopertutorial.com/group-anagrams-in-c/

Competitive Programming

24 Feb, 05:05


Day 33 Question: Given an n x n 2D matrix rotate it by 90 degrees (clockwise) in C++ in place

You have to rotate the image in-place (https://en.wikipedia.org/wiki/In-place_algorithm), which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotation.
Example 1:

Given input matrix =

[
[1,2,3],
[4,5,6],
[7,8,9]
],

rotate the input matrix in-place such that it becomes:

[
[7,4,1],
[8,5,2],
[9,6,3]
]
Solution:
https://www.prodevelopertutorial.com/given-an-n-x-n-2d-matrix-rotate-it-by-90-degrees-clockwise-in-c-in-place/

Buy the book:
https://www.instamojo.com/aj_guides/ajs-guide-to-algorithm-and-data-structure-in/

Competitive Programming

23 Feb, 06:47


Subscribe us in Quora: https://www.quora.com/q/dailyonecodingproblem

Competitive Programming

23 Feb, 06:41


Check if Two Trees are Mirror Structure to each other

Solution:

https://www.prodevelopertutorial.com/check-if-two-trees-are-mirror-structure-to-each-other/

4,759

subscribers

8

photos

56

videos