Kanchan Raikanchanraiii.hashnode.dev·Dec 10, 2024Day 21: 100 Days of DSAWelcome to Day 2 of my 100 Days of DSA challenge! Today, I solved five problems focused on arrays. Here's a quick look at the questions I tackled and how I approached them 🤖✨ Check out my GitHub repository for all my solutions and progress. Let’s ke...100 Days of DSAHeaps
Soumyajit Karmakarcodeiiest.hashnode.dev·Dec 9, 2024CP-DSA ResourcesPrerequisite Learn a Language. Language preference order → C++ > Java > Python. Language does not matter much; you can choose your language based on your interests and prior experience. If you are entirely new, then go with C++. C++ Resources C++ ...Competitive programming
Samirasamiracppdev.hashnode.dev·Nov 27, 2024𝐃𝐚𝐭𝐚 𝐑𝐚𝐜𝐞 and 𝐑𝐚𝐜𝐞 𝐂𝐨𝐧𝐝𝐢𝐭𝐢𝐨𝐧𝐬🔥In this post, I’ll cover key 𝐜𝐨𝐧𝐜𝐮𝐫𝐫𝐞𝐧𝐜𝐲 concepts related to multithreaded programming in C++, which are also commonly asked in #interview_questions. 1️⃣ 𝐃𝐚𝐭𝐚 𝐑𝐚𝐜𝐞𝐬2️⃣ 𝐑𝐚𝐜𝐞 𝐂𝐨𝐧𝐝𝐢𝐭𝐢𝐨𝐧𝐬 Before continuing, let’s under...30 readsdatarace
Samirasamiracppdev.hashnode.dev·Nov 24, 2024𝐑𝐯𝐚𝐥𝐮𝐞 𝐑𝐞𝐟𝐞𝐫𝐞𝐧𝐜𝐞𝐬 in C++🎯Understanding 𝐑𝐯𝐚𝐥𝐮𝐞 𝐑𝐞𝐟𝐞𝐫𝐞𝐧𝐜𝐞𝐬 in C++ ❓1️⃣What are 𝐫𝐯𝐚𝐥𝐮𝐞 𝐫𝐞𝐟𝐞𝐫𝐞𝐧𝐜𝐞𝐬 in C++?They were introduced in C++11 to support 𝐦𝐨𝐯𝐞 𝐬𝐞𝐦𝐚𝐧𝐭𝐢𝐜𝐬. Fundamentally, an rvalue reference is a 𝒓𝒆𝒇𝒆𝒓𝒆𝒏𝒄𝒆, meaning i...32 readscpp
Jaideep Singh Sekhonjaideepsekhon.hashnode.dev·Nov 17, 2024Day 1/45Below are the tasks I accomplished today Data structures and Algorithms Revised about Binary Tree, Level Order traversal, DFS traversal and practised 2 new leetcode problem calculating the height of binary tree and checking if the given binary tree i...Programming Blogs
Vibhanshu Singhsinghvibhanshu.hashnode.dev·Nov 11, 2024Object-Oriented Programming in C++Before we go further, we need to understand what OOP is. Basically, OOP, or Object-Oriented Programming, is one of several programming approaches. It's a set of rules, ideas, or concepts designed to help us solve real-world problems. The main idea be...1 like·30 readsObject Oriented Programming
Love of a Lifetimelove-in-a-lifetime.hashnode.dev·Nov 11, 2024LeetCode刷题日记最后一个单词的长度 思路 题目明确了提供的字符串以空格隔开每一个单词,要获取到最后一个单词长度,首先需要先获取到最后一个单词。因此可以遍历字符串,以空格作为分隔符来定位最后一个单词串,再获取其长度即可; 具体实现上,我们可以从字符串末尾开始查找,只要查找的字符串没有达到首部,并且目标字符串不是空串的情况下,就移动指针,一直查找,直到定位到第一个非空字符串,这就是周后一个单词的末位索引. 接下来,只需要继续向前查找到下一个空格,表示查找到了最后一个单词的开始字符的前一个位置(此时索引i指向的实际...leetcode
Ravi Kumarravikr126.hashnode.dev·Nov 4, 2024Kadane's Algorithms for FAANG interviewsLet's talk about the most popular and most asked interview questions. 👉 𝐅𝐢𝐧𝐝 𝐭𝐡𝐞 𝐦𝐚𝐱𝐢𝐦𝐮𝐦 𝐬𝐮𝐦 𝐨𝐟 𝐚 𝐜𝐨𝐧𝐭𝐢𝐠𝐮𝐨𝐮𝐬 𝐬𝐮𝐛𝐚𝐫𝐫𝐚𝐲. So how do you solve this question? 🤔So many approaches are there, but the most popular ...data structures
Samirasamiracppdev.hashnode.dev·Nov 3, 2024𝐂++17 𝐜𝐨𝐩𝐲 𝐞𝐥𝐢𝐬𝐢𝐨𝐧 and 𝐭𝐞𝐦𝐩𝐨𝐫𝐚𝐫𝐲 𝐦𝐚𝐭𝐞𝐫𝐢𝐚𝐥𝐢𝐳𝐚𝐭𝐢𝐨𝐧🎯 In this post, I’d like to discuss 𝐂++17 𝐜𝐨𝐩𝐲 𝐞𝐥𝐢𝐬𝐢𝐨𝐧 and 𝐭𝐞𝐦𝐩𝐨𝐫𝐚𝐫𝐲 𝐦𝐚𝐭𝐞𝐫𝐢𝐚𝐥𝐢𝐳𝐚𝐭𝐢𝐨𝐧 topics I find interesting! 🔗 𝐋𝐢𝐧𝐤 𝐭𝐨 𝐭𝐡𝐞 𝐞𝐱𝐚𝐦𝐩𝐥𝐞:https://lnkd.in/gTwHw9Ef class X { public: X() = default; ...56 readscpp17