BSBandari sai kumarintechrush.hashnode.dev·Sep 7, 2023 · 2 min readGraphs-DSAGraphs in Data Structures and Algorithms A graph is a non-linear data structure consisting of vertices (nodes) and edges (links between nodes). Graphs are used to represent real-world relationships where data has connections to other data. Some examp...00
BSBandari sai kumarintechrush.hashnode.dev·Sep 7, 2023 · 2 min readDSA (Data Structure and Algorithms)Data Structures and Algorithms Data structures are a way to store and organize data in memory to allow efficient access and modifications. Algorithms are step-by-step instructions to solve a computational problem. Data structures and algorithms are i...00
BSBandari sai kumarintechrush.hashnode.dev·May 15, 2023 · 2 min readIsomorphic Strings C++ CodeGiven two strings s and t, determine if they are isomorphic. Two strings s and t are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another character while preserving the order of char...00
BSBandari sai kumarintechrush.hashnode.dev·May 10, 2023 · 2 min readRotate Array C++ CodeHere's an explanation of each line of the rotate function in more detail: This line defines the rotate function, which takes a vector of integers nums and an integer k as input, and does not return a value (i.e., it has a void return type). The func...00
BSBandari sai kumarintechrush.hashnode.dev·May 8, 2023 · 1 min readisPalindrome in C++ CodeThis line defines the function isPalindrome that takes a string s as input and returns a boolean value. This line creates an empty string clean which will store the cleaned-up version of the input string. This loop iterates over each character c in...00