Sarthak Kulkarnicombustrrr.hashnode.dev·Dec 1, 2024Solving the 'Amazing Subarrays' Problem in JavaProblem: Count substrings starting with a vowel in a given string, modulo 10003. Solution: public class Solution { public int solve(String A) { int count = 0; char vowels[] = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}; ...Edge Case Handling
Sarthak Kulkarnicombustrrr.hashnode.dev·Dec 1, 2024Solving String Permutation Problems in JavaQuestion: Given two strings A and B, check if they can be rearranged to match (i.e., check if they are permutations of each other). Solution: import java.util.Arrays; public class Solution { public int permuteStrings(String A, String B) { ...Algorithm Solutions
Oluwatosin Oghenewaire Thompsongoninja.hashnode.dev·Nov 18, 2024Part 2: Understanding Basic Data Types in Go - Working with Strings in Go: Manipulation, Concatenation, and Unicode SupportStrings are a fundamental data type in Go, and they are crucial for any programming language as they allow you to work with text data. In Go, strings are immutable sequences of bytes, meaning that once a string is created, it cannot be modified. Howe...Beginner's Guide to Golang: Start Coding with Confidence Go string
Arjun Patilbeginners-python-for-leetcode.hashnode.dev·Oct 31, 2024Beginner's Python for LeetcodeA beginners guide to strings and arrays in Python for Leetcode Getting started with leetcode was a rough task for me. I’d open up the site all motivated, hyped to go on a problem solving rampage thinking the “easy” tag actually meant easy. However, I...1 likePython
David Oluwafemi Joshuadavisphem.hashnode.dev·Sep 27, 2024Data Structures and Algorithms Unfolded: KMP, Rabin-Karp and Manacher Through My Lens (Series 1)KMP Algorithm: Making Pattern Matching Less of a Wild Goose Chase Imagine you’re trying to find your lost cat in a large city. You can’t just walk up to every cat on the street and ask, “Are you mine?” You need a strategy. That’s where Knuth-Morris-P...20 likes·100 readsData Structures and Algorithms Unfolded: Through My Lensmanacher
MD. ABDULLAHabdullah.com.bd·Sep 20, 2024Mastering String Case Conversion in Dart and Flutter with RecaseWelcome 👋. For String case conversion while Dart offer only UPPER CASE lower case There is an awesome package named Recase offer additional 10 string cases. These are snake_case dot.case path/case param-case PascalCase Header-Case Title C...35 readsDart or Flutter Package Tutorialcase conversion
Nagendra simhadrinagsblog.hashnode.dev·Aug 24, 2024String Challenges: Effective Solutions in C/C++, Java, and PythonHere's a detailed outline of string manipulation algorithms in C/C++, Java, and Python, including algorithm steps, time complexity, and space complexity. 1. Reversing a String Algorithm Steps: Input the string. Initialize two pointers: one at the s...2 likesData Structures and Algorithms for Job Seekersstring manipulation
Kunaal Thanikkunaal.hashnode.dev·Jul 29, 2024Strings Manipulation -ch-02Concatenation : concatenate using '+' operator prefix = "al" suffix = "pha" print(prefix + suffix) # output : alpha f-String: helpful to print message with variable values. syntax: f" your message {var_a} and print {var_b} " prefix = "al" suffix = "...Python RecallPython
Vikas Guptavikasfeedingdotnet.hashnode.dev·May 31, 2024Welcome to "Mastering C# Strings: Top 15 Interview Questions Answered"!In this comprehensive video, we delve deep into the world of C# strings, covering essential concepts and addressing common interview questions that you're likely to encounter in your C# programming journey. https://www.youtube.com/watch?v=8EPP-fZuQW4...string
Rakesh Vermarakeshverma.hashnode.dev·Apr 14, 2024Text Alignment in PythonThere are methods in python on str class which are used to adjust the padding on texts. Ex: hello = 'Hello' print(hello.ljust(21, '-')) print(hello.center(21, '-')) print(hello.rjust(21, '-')) #Expected output for this would be Hello----------------...Python