GAURAV YADAVgaurav246blogs.hashnode.dev·Jan 9, 2024151 DSA Problem journeyQ21:Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each number in candidates may only be used once in the combination. Note: The...Discuss·16 likesC++
GAURAV YADAVgaurav246blogs.hashnode.dev·Dec 27, 2023151 DSA Problem journeyQ18:Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example : Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] Solution: class Solution { public: v...Discuss·13 likesC++
GAURAV YADAVgaurav246blogs.hashnode.dev·Dec 26, 2023151 DSA Problem journeyQ17:Given an array Arr[] of size L and a number N, you need to write a program to find if there exists a pair of elements in the array whose difference is N. Example : Input: L = 6, N = 78 arr[] = {5, 20, 3, 2, 5, 80} Output: 1 Explanation: (2, 80) h...Discuss·17 likesC++
GAURAV YADAVgaurav246blogs.hashnode.dev·Dec 25, 2023151 DSA Problem JourneyQ16:Given an array Arr of N positive integers and another number X. Determine whether or not there exist two elements in Arr whose sum is exactly X. Example : Input: N = 6, X = 16 Arr[] = {1, 4, 45, 6, 10, 8} Output: Yes Explanation: Arr[3] + Arr[4] ...Discuss·14 likesC++
Mayank Aggarwalblogsbymayank.hashnode.dev·Oct 9, 2023A Comprehensive Guide to C++ ProgrammingWelcome to this comprehensive guide on C++ programming! Whether you're a complete beginner or have some programming experience, this guide will take you through the essential concepts and features of C++ step by step. We'll break down the topics into...Discuss·83 likes·7.0K readsC++mayank
Aditya Bhawarcoderab.hashnode.dev·Sep 29, 2023Understanding Basic C++ SyntaxIn C++, a program is a collection of objects that interact by calling each other's methods. Let's break down the fundamental terms: class, object, methods, and instance variables. Objects: Objects in C++ have states (like color, name, breed) and beha...DiscussC++ Tutorialscpp
Aditya Bhawarcoderab.hashnode.dev·Sep 29, 2023Set Up EnvironmentSetting Up Your Local Environment Preparing your environment for C++ programming involves two essential components: Text Editor A reliable text editor is indispensable for coding. Choose one that suits your preferences and platform. Some popular opt...DiscussC++ TutorialsEnvironment variables
Aditya Bhawarcoderab.hashnode.dev·Sep 29, 2023C++ IntroductionC++ is a versatile and powerful programming language that finds wide application across various domains. Originally developed as an extension of the C programming language, C++ encompasses both procedural and object-oriented programming paradigms. It...DiscussC++ Tutorials#cpp #guide
Shreyansh Jainjainshreyansh.com·Sep 2, 2023Binary SearchIntroduction Binary Search is a powerful algorithm designed to locate the position of an element within a sorted array. The central principle of Binary Search is to focus on the middle element of the current segment of the array. By comparing the tar...Discuss·29 readsData Structures and Algorithmsbinary search
Sagnik Dassagniks-code-chronicles.hashnode.dev·Jul 23, 2023Demystifying Data Structures and Algorithms with STL: A Programmer's Guide to Effective Problem-SolvingWhen it comes to efficiency and versatility, the STL is the silver bullet every programmer needs in their arsenal. Welcome to the exciting realm of Data Structures and Algorithms, or "DSA" for short! If you're curious but a little nervous about expl...Discuss·3 likesDSA