Sanket Disale’s Post

View profile for Sanket Disale, graphic

Software Intern @Semtech | Knight @Leetcode (Max. 1894) | SIH'23 & SIH'22 Winner | Electhon'23 Finalist | First Place @Unscript Rookies'23| Fullstack Developer | IT Grad'25 | VIT

Hello Everyone, I participated in 𝐋𝐞𝐞𝐭𝐂𝐨𝐝𝐞 𝐁𝐢𝐰𝐞𝐞𝐤𝐥𝐲 𝐂𝐨𝐧𝐭𝐞𝐬𝐭 𝟭𝟮𝟳 and successfully solved 𝟯/𝟰 𝐩𝐫𝐨𝐛𝐥𝐞𝐦𝐬, securing a 𝐠𝐥𝐨𝐛𝐚𝐥 𝐫𝐚𝐧𝐤 𝐨𝐟 𝟯𝟵𝟲/𝟮𝟳𝟬𝟬𝟵 participants. This is my first time achieving a rank under 500! 😊 𝗣𝗿𝗼𝗯𝗹𝗲𝗺 𝟭: Check the subarray when you get a Subarray OR greater than or equal to 'k'. Calculate the length and keep the minimum length as the final answer. 𝗣𝗿𝗼𝗯𝗹𝗲𝗺 𝟮: - Define pointsD[i] as the gain points of Danielchandg from index 0 to i - and pointsB[i] as the gain points of Bob from index i+1 to n-1.  - Traverse the pointsD array and find where pointsD[i] is greater than pointsB[i+1], then return the level accordingly. 𝗣𝗿𝗼𝗯𝗹𝗲𝗺 𝟯: - Visualize numbers in binary.  - Pre-calculate the set bits (ones) until index 'i' and bit number 'bitNo' as prefBits[i][bitNo]. -Check if a length 'm' is possible such that the OR of all elements is greater than or equal to 'k'. Use a sliding window approach for this.  - Also, consider binary search for lengths from 1 to n. 𝗣𝗿𝗼𝗯𝗹𝗲𝗺 𝟰: Encountered TLE. Will try to solve it again later. I'm excited about these challenges and looking forward to more contests! #leetcode #CodingContest #ProgrammingSkills #Algorithm #CodingJourney

  • No alternative text description for this image
NIKHIL GURJAR

GET @Sopra Steria | 1st Runner-up @ISIM HACKTHON 2.0 | 2 🌟 @Codechef | 1449 (max) @Leetcode | Ex-Intern @Gyan Eduversity | MERN STACK DEV. | @CSE-24

6mo

Amazing bro

To view or add a comment, sign in

Explore topics