Browsing Tag
algorithms
45 posts
83. Remove Duplicates from Sorted List leetcode solution in java
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; *…
Best Ways to Strip Punctuation from Strings in Python and JavaScript
Why Do you Need to remove punctuation? In various text-processing tasks, it is often necessary to remove punctuation…
Disjoint Set Union heuristics
DSU is one of the most elegant in implementation data structure and I’ve used in my competitive programming…
Challenge Accepted
In my spare time, I like to watch YouTube. Who doesn’t? Recently I watched a video entitled ‘Solve…
LeetCode’s Running Sum of 1d Array – Highly Efficient Java Solution (Beats 100% In Runtime And 94% in Memory Usage)
Intuition My first thought on how to solve this problem is to iterate through the array and add…
Bitcoin Signatures From Scratch (4/4): ECDSA Implementation in Python Using Zero Dependencies
The series consists of four parts; each part uses the concepts discovered in the previous parts: The Magic…
Bitcoin Signatures From Scratch (3/4): Using The Magic of Elliptic Curves to Sign and Verify Messages
The series consists of four parts; each part uses the concepts discovered in the previous parts: The Magic…
Bitcoin Signatures From Scratch (2/4): The Magic of Elliptic Curves Combined with Finite Fields
The series consists of four parts; each part uses the concepts discovered in the previous parts: The Magic…
Bitcoin Signatures From Scratch (1/4): The Magic of Elliptic Curves
Intro to Series Elliptic curves are very simple. The Elliptic Curves Digital Signature Algorithm (ECDSA) is the crucial…
LeetCode – Rectangle Area
Problem statement Given the coordinates of two rectilinear rectangles in a 2D plane, return the total area covered…