Giriraj Bidwai’s Post

View profile for Giriraj Bidwai, graphic

Final Year Student | AWS Cloud Practitioner | Google Cloud Digital Leader | Leetcode - Knight(1861) | Codeforces - Pupil(1210) | AtCoder - Brown(692) | Data Engineer | PySpark | SQL | Kafka | AWS | CSE Grad '25

AtCoder Beginner Contest 358 Question A : Check if string contains AtCoder and Land if present output Yes else No. Question B : Given the person comes ticket counter at ith time just iterate and if the previous customer time is greater than next customer arriving time we will add the time required in the max of completion time of previous customer and next customer arriving time. Question C : Dp problem to visit minimum stand to collect all the type of popcorn states are the popcorn picked and the index use mask to store the types of popcorn picked. Question D : Sort the both arrays.While iterating just check which candy box can be picked greedily and add it to the min heap.Lastly if possible pick the M boxes with minimum cost and output cost if not possible then -1. Question E : Used dp to maintain the states such that number of possible ways of constructing string of length l and character type j.We will start from string length of 1 to k and next we have option to create the string of length k using the character from a to z and the frequency of character is given we can use it upto the maximum frequency such that the length condition is maintained and the position of arranging the character can be calculated effectively using Fermat little theorem. #code #coding #atcoder #cp #cpp #Contest #maths #leetcode #python #codechef #codeforces

  • No alternative text description for this image
Ajay Soni

Intern @Streebo | CSE'24🧑💻 | C, C++, Java & DSA | Leetcode (1833+), GFG (3150+ Points & 600+ current POTD streak) & Codechef (1628+, 3⭐) | Android App Developer (Java) | Chatbot Developer

6mo

Love this, Thanks for sharing ❤️

To view or add a comment, sign in

Explore topics