Competitive programming questions @competitive_programming_question Channel on Telegram

Competitive programming questions

@competitive_programming_question


Solving competitive Programming Questions one day at a time.

Group link:
https://t.me/competitive_programming_question
Please forward it to your friends

Competitive programming questions (English)

Are you a fan of challenging yourself with complex programming problems? Look no further! Join us on our Telegram channel, Competitive programming questions, where we tackle tough programming questions one day at a time

Who are we? We are a group of passionate programmers who love to push our limits and improve our coding skills by solving competitive programming questions. Whether you are a beginner looking to sharpen your skills or an experienced coder looking for a new challenge, our channel is the perfect place for you

What can you expect from us? On our channel, you will find a wide range of programming questions that cover various topics such as algorithms, data structures, dynamic programming, and more. Each day, we post a new question for our members to tackle and discuss. It's a great way to learn new techniques, practice problem-solving, and interact with like-minded individuals

If you're ready to take your programming skills to the next level, join us on Competitive programming questions. Click on the following link to join our group and start your coding journey today: https://t.me/competitive_programming_questionnnDon't keep this opportunity to yourself! Forward this message to your friends who share your passion for programming. Let's grow our community and learn together. See you on the channel!

Competitive programming questions

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 questions

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 questions

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 questions

23 Feb, 06:47


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

Competitive programming questions

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/

6,639

subscribers

3

photos

53

videos