Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 29, 2023Ada: StringsAda strings are a fundamental data type in Ada programming language. They are used to represent sequences of characters and are essential for handling text data. Ada provides two main types of strings: fixed-length strings and unbounded-length string...DiscussAda LanguageADA
Sawan Badhwarsawan1367.hashnode.dev·Nov 14, 2023Day 15 of DSA ChallengeRise and Shine. One more day playing with recursion. I tried solving two new problems that I found out. However, I wasn't able to solve the second one. But still, I got this one down. In this case, I was asked to remove the middle element of the stac...DiscussStacks
Pixelpixelnotes.hashnode.dev·Nov 5, 2023How Data Types Handle Endings: Strings vs IntegersThere is no need for a special character like '\0' to signify the end of an integer or float. The size of the storage for integers and floats is typically fixed based on the data type (e.g., 4 bytes for a 32-bit integer or a single-precision float), ...Discussdata structures
Sawan Badhwarsawan1367.hashnode.dev·Nov 3, 2023Day 6 but Day 4 of RecursionHello! everyone, it's nice to interact and share my experiences with you. I hope you like my blogs. As we were going through the topics of recursion, we also tried to solve a few of the questions with the help of recursion. However, solving only a fe...Discuss·10 likes#Palindrome
Kallol Bairagikallolbairagi.hashnode.dev·Oct 12, 2023#20. Valid Parentheses [LeetCode Grind 75 in Java]class Solution { public boolean isValid(String s) { Stack<Character> st = new Stack<>(); for(char c : s.toCharArray()){ if(c == '(' || c == '{' || c == '[') st.push(c); else{ if(st.isEmpty(...DiscussLeetCode Grind 75 in JavaJava
Kallol Bairagikallolbairagi.hashnode.dev·Oct 12, 2023#125. Valid Palindrome [LeetCode Grind 75 in Java]class Solution { public boolean isPalindrome(String s) { int n = s.length(); //making the string as case insensitive StringBuilder sb = new StringBuilder(); for(char c : s.toCharArray()){ c = Characte...DiscussLeetCode Grind 75 in JavaJava
Kallol Bairagikallolbairagi.hashnode.dev·Oct 12, 2023#242.Valid Anagram [LeetCode Grind 75 in Java]class Solution { public boolean isAnagram(String s, String t) { //treated as constant space to store frequency of characters int[] freq = new int[26]; for(char c : s.toCharArray()){ freq[c - 'a'] ++; }...DiscussLeetCode Grind 75 in JavaJava
Neha Nupurnehanupur.hashnode.dev·Oct 9, 2023A Comprehensive Guide to Working with Arrays and Strings in JavaScript (Part 2)Hey, Readers! Welcome to another JavaScript blog. In this blog, we'll dive deep into Strings and Arrays, covering the basics to advanced topics. However, before we get started, I recommend going through the fundamentals of JavaScript. If you haven't ...DiscussJavaScript
Nicole Ampofonicoleampofodev.hashnode.dev·Oct 9, 2023JavaScript String MethodsEach coding language has its own syntax for string methods. A string is a sequence of characters. These characters are often letters, but can include symbolic characters as well. A method is a set of instructions that tell the computer what to do in ...DiscussJavaScript
Kallol Bairagikallolbairagi.hashnode.dev·Oct 8, 2023#409.Longest Palindrome [LeetCode Grind 75 in Java]class Solution { public int longestPalindrome(String s) { int[] count = new int[128]; for(char c : s.toCharArray()) count[c] ++; int ans = 0; boolean onef = false; for(int freq : count){ //ev...DiscussLeetCode Grind 75 in JavaDSA