Pratik Shahpratik676.hashnode.dev·Aug 26, 2024Count Substrings with Exactly k Distinct Characters in a StringProblem Statement Given a string of lowercase alphabets, count all possible substrings (not necessarily distinct) that have exactly k distinct characters. Example:Input: S = "aba", K = 2Output: 3Explanation: The substrings are "ab", "ba", and "aba". ...20 likes·55 readsSubstrings
Vikas Guptavikasfeedingdotnet.hashnode.dev·Jun 27, 2024Master C# String Manipulation: Character Frequency, Remove Duplicates, Reverse & Find Substrings!Watch now and master the essential string programs that will make you a C# wizard! 🔮 https://www.youtube.com/watch?v=nNsorUMalF0 In this video, you'll discover: ✨ How to count character frequency in a string ✨ How to remove duplicates from a strin...C#
Jeet Bhalujeetbhalu.hashnode.dev·Mar 14, 2024Dart String: Extracting TextExtracting Text: you can use a combination of string methods and regular expressions. using substring: You can use the substring method to extract a portion of a string based on its indices. void main() { String text = "Hello, world!"; // Extr...Dart String: Extracting Text
Jemin Kikanijemin.hashnode.dev·Feb 28, 2024Day 5 : how many String Methods in javascript with example ?● String length ● String slice() ● String substring() ● String substr() ● String replace() ● String replaceAll() ● String toUpperCase() ● String toLowerCase() ● String concat() String Length:- ● String trim() ● String trimStart() ● String tr...padEnd()
Dayeonyeonnan.hashnode.dev·Feb 1, 2024[sql study note] replace, substring, concat, if, case, castreplace를 이용하여 특정 문자를 다른 문자로 바꾸는 방법 REPLACE 함수는 컬럼 내의 특정 문자를 다른 문자로 바꿀 때 사용한다. replace(바꿀 컬럼, 현재 값, 바꿀 값) ex) '문곡리'라고 되어있는 주소를 '문가리'라고 바뀐 주소명으로 치환해주기 SELECT addr, REPLACE (addr, '문곡리', '문가리') "바뀐주소" FROM food_orders WHERE addr LIKE '%문곡리%' ...SQLSQL
Pratik Kumarpratikkumar.hashnode.dev·Jan 14, 2024KMP AlgorithmAn Optimized string matching algorithm.kmp_algorithm
Ashik Bhuyanashik17.hashnode.dev·Sep 20, 2023Subsequence Vs Substring Vs SubarraySubstring 👍 A substring is a contiguous(continuous) sequence of characters present within a string. It is a string present inside a string.For instance, the substrings of the string “tree” would be:‘t,’ ‘r,’ ‘e,’ ‘tr,’ ‘tre,’ ‘tree,’ ‘re,’ ‘ree,’ ‘e...subsequence
Pranjit Medhipranjitmedhi.hashnode.dev·Aug 24, 2023LeetCode 28. Find the Index of the First Occurrence in a StringQuestion Statement: Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystack = "sadbutsad", needle = "sad" Output: 0 Explanation: "sad...leetcode
KENNETH devkenny.hashnode.dev·Mar 3, 2023Using SQL SUBSTR Function to Extract and Manipulate String DataThe SUBSTR function is a commonly used function in SQL for manipulating string data. This function is used to extract a substring from a larger string based on a specified starting position and length. In this article, we will discuss the SUBSTR func...SQL
Dmitry Ronzhinronzhin.hashnode.dev·Jan 30, 2023Finding substringsWhat I actually like to do is to describe some algorithms from the most naive approach to quite complicated ones. It is also very satisfying when there are both complex and simple algorithms that improve a lot compared to naive ones, and one can see ...48 readsPython