Posts

Showing posts from November, 2022

𝐂𝐨𝐝𝐢𝐧𝐠 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬

Image
𝐂𝐨𝐝𝐢𝐧𝐠 𝐩𝐚𝐭𝐭𝐞𝐫𝐧𝐬 𝐞𝐧𝐡𝐚𝐧𝐜𝐞 𝐨𝐮𝐫 “𝐚𝐛𝐢𝐥𝐢𝐭𝐲 𝐭𝐨 𝐦𝐚𝐩 𝐚 𝐧𝐞𝐰 𝐩𝐫𝐨𝐛𝐥𝐞𝐦 𝐭𝐨 𝐚𝐧 𝐚𝐥𝐫𝐞𝐚𝐝𝐲 𝐤𝐧𝐨𝐰𝐧 𝐩𝐫𝐨𝐛𝐥𝐞𝐦.” Here, gathered around 20 of these coding problem patterns that I believe can help anyone learn these beautiful algorithmic techniques and make a real difference in the coding interviews. The idea behind these patterns is that once you’re familiar with a pattern, you’ll be able to solve dozens of problems with it. So, without further ado, let me list all these patterns: 1. 𝐒𝐥𝐢𝐝𝐢𝐧𝐠 𝐖𝐢𝐧𝐝𝐨𝐰 2. 𝐈𝐬𝐥𝐚𝐧𝐝𝐬 (𝐌𝐚𝐭𝐫𝐢𝐱 𝐓𝐫𝐚𝐯𝐞𝐫𝐬𝐚𝐥) 3. 𝐓𝐰𝐨 𝐏𝐨𝐢𝐧𝐭𝐞𝐫𝐬 4. 𝐅𝐚𝐬𝐭 & 𝐒𝐥𝐨𝐰 𝐏𝐨𝐢𝐧𝐭𝐞𝐫𝐬 5. 𝐌𝐞𝐫𝐠𝐞 𝐈𝐧𝐭𝐞𝐫𝐯𝐚𝐥𝐬 6. 𝐂𝐲𝐜𝐥𝐢𝐜 𝐒𝐨𝐫𝐭 7. 𝐈𝐧-𝐩𝐥𝐚𝐜𝐞 𝐑𝐞𝐯𝐞𝐫𝐬𝐚𝐥 𝐨𝐟 𝐚 𝐋𝐢𝐧𝐤𝐞𝐝𝐋𝐢𝐬𝐭 8. 𝐓𝐫𝐞𝐞 𝐁𝐫𝐞𝐚𝐝𝐭𝐡-𝐅𝐢𝐫𝐬𝐭 𝐒𝐞𝐚𝐫𝐜𝐡 9. 𝐓𝐫𝐞𝐞 𝐃𝐞𝐩𝐭𝐡 𝐅𝐢𝐫𝐬𝐭 𝐒𝐞𝐚𝐫𝐜𝐡 10. 𝐓𝐰𝐨 𝐇𝐞𝐚𝐩𝐬 11. 𝐒𝐮𝐛𝐬𝐞𝐭𝐬 12. 𝐌𝐨𝐝𝐢𝐟𝐢𝐞𝐝 𝐁𝐢𝐧𝐚𝐫𝐲 𝐒𝐞𝐚𝐫𝐜𝐡