Stella Mariesmkou.hashnode.dev·Apr 22, 2024Gleam: RaindropsProblem on Exercism pub fn convert(number: Int) -> String { } First Iteration: Pattern-matching To start, I just wanted to solve the problem and decided to use pattern-matching. pub fn convert(number: Int) -> String { case number % 3, number % 5...Discussgleam
Stella Mariesmkou.hashnode.dev·Apr 22, 2024Gleam: Difference of SquaresProblem on Exercism and on Project Euler pub fn square_of_sum(n: Int) -> Int {} pub fn sum_of_squares(n: Int) -> Int {} pub fn difference(n: Int) -> Int { square_of_sum(n) - sum_of_squares(n) } First Iteration: Recursion Since the square of th...Discussgleam
Sanket Nimkarsanketnmkr.hashnode.dev·Mar 11, 2024Streamlining AWS Lambda Functions with DockerIntroduction In computer stuff where you don't need to worry about managing servers, AWS Lambda is super strong. But to make it work really well, you often have to package your code in a certain way that Lambda likes. That's where Docker comes in. Do...Discuss·2 likes·70 readsAWS
Edward Anil Josephedwardanil.hashnode.dev·Feb 25, 2024Longest Substring Without Repeating CharactersGiven a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The ans...DiscussLeetCode Solutionsleetcode
Edward Anil Josephedwardanil.hashnode.dev·Feb 24, 2024Palindrome NumberGiven an integer x, return true if x is a palindrome , andfalseotherwise. Example 1: Input: x = 121 Output: true Explanation: 121 reads as 121 from left to right and from right to left. Example 2: Input: x = -121 Output: false Explanation: From left...DiscussLeetCode Solutionsleetcode
Edward Anil Josephedwardanil.hashnode.dev·Feb 5, 2024Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two ...DiscussLeetCode Solutionsleetcode
Edward Anil Josephedwardanil.hashnode.dev·Jan 16, 2024Two SumGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the a...DiscussLeetCode Solutionsleetcode
Blanxer NepalforBlanxer Blog'sblog.blanxer.com·Nov 22, 2023What is Blanxer - What problem it solvesLet me start with the problems we all been facing here in Nepal. People are just starting to understand value of digital presence and branding 90% of business in nepal don’t have website which is most important thing from branding perspective Peop...Discuss·711 readswhat
Iqmaiqmacodes.hashnode.dev·Sep 27, 2023How to Run All Cells In Google ColabI had a presentation with a teammate a month back where we had to showcase a project in front of an audience. I couldn't use my code which was on colab mostly because it wasn't complete yet and we decided to go with my teammate's code instead since w...Discuss·14 likes·218 readssolutions
Awais Sajidblackdiamond.hashnode.dev·Aug 22, 2023How to create Merkle Trees for airdrops: Quiz SolutionWhat kind of data structure is a Merkle Tree? Tree How is each leaf node labeled in Merkle Tree? A cryptographic hash of the data block How is each non-leaf node labeled in Merkle Tree? A cryptographic hash of its child nodes’ values In the abo...Discussmerkle tree