Grant Riordan

Grant Riordan @grantdotdev

About: Lvl 12 Dev - Lead Software Engineer & Tech Author Twitter link below 👇

Location:
Yorkshire, England
Joined:
Jul 17, 2020

Grant Riordan
articles - 112 total

Spread Operator and Chaining in JS/TS

Hey, so I’m sometimes asked how the spread operator works in JS especially when working with chained...

Learn More 0 0Sep 30

C# LeetCode 268: Missing Number - (Easy)

LeetCode 268: Missing Number This problem gives you an array of distinct numbers ranging from 0 to...

Learn More 1 0Sep 25

LeetCode 8: String to Integer (atoi) - Medium

Mastering LeetCode 8: String to Integer (atoi) A Simple and Efficient...

Learn More 1 0Sep 21

LeetCode 206: Reverse Linked List - (Easy)

Given the head of a singly linked list, reverse the list, and return the reversed list. ...

Learn More 0 0Sep 16

Extension Members: My New Favourite Feature in C# 14

The release candidate of .Net10 was released on the 9th September [2025], which comes with C# 14, and...

Learn More 4 1Sep 12

C# LeetCode 1792: Maximum Average Pass Ratio - (Medium)

LeetCode 1792: Maximum Average Pass Ratio - (Medium Difficulty) Intuition Needed a way to...

Learn More 0 0Sep 4

LeetCode 168: Excel Sheet Column Title (Easy)

Approach This problem is essentially a base-26 conversion, where the "digits" are the 26...

Learn More 0 0Aug 30

Stop Throwing Exceptions: The ServiceResult<T> Pattern for Clean API

Error handling in APIs can get pretty messy, right? Whether it's throwing exceptions for "expected"...

Learn More 2 0Aug 29

When Benchmarks Lie: A Case of “0ns” String Comparisons

Recently, while reviewing code, I spotted a colleague using ToLower() for a case-insensitive string...

Learn More 0 0Aug 12

C# LeetCode 136: Single Number - (Easy)

Problem Given a non-empty array of integers nums, every element appears twice except for...

Learn More 0 0Aug 6

C# LeetCode 125: Valid Palindrome - (Easy)

Problem A phrase is a palindrome if, after converting all uppercase letters into lowercase...

Learn More 0 0Aug 6

C# LeetCode 118: Pascal's Triangle - (Easy)

Problem Given an integer numRows, return the first numRows of Pascal's triangle. In...

Learn More 0 0Aug 6

C# LeetCode 112: Path Sum -(Easy)

Problem Given the root of a binary tree and an integer targetSum, return true if the tree...

Learn More 0 0Aug 6

C# LeetCode 88: Merge Sorted Array - (Easy)

Problem You are given two integer arrays nums1 and nums2, sorted in non-decreasing order,...

Learn More 1 0Aug 6

C# LeetCode 104: Maximum Depth of Binary Tree - (Easy)

Problem Given the root of a binary tree, return its maximum depth. A binary tree's...

Learn More 0 0Aug 6

C# LeetCode 101: Symmetric Tree

Problem Given the root of a binary tree, check whether it is a mirror of itself (i.e.,...

Learn More 0 0Aug 5

C# LeetCode 83: Remove Duplicates from Sorted List

Problem Given the head of a sorted linked list, delete all duplicates such that each...

Learn More 0 0Aug 5

C# LeetCode 35: Search Insert Position

Problem Given a sorted array of distinct integers and a target value, return the index if...

Learn More 0 0Aug 5

C# LeetCode 66: Plus One - (Easy)

Problem You are given a large integer represented as an integer array digits, where each...

Learn More 0 0Aug 5

C# LeetCode 94: Binary Tree Inorder Traversal - (Easy)

Problem Given the root of a binary tree, return the "inorder traversal" of its node's...

Learn More 0 0Aug 5

C# LeetCode 100: Same Tree - (Easy)

 Problem Given the roots of two binary trees p and q, write a function to check if they...

Learn More 0 0Aug 4

Python LeetCode 70: Climbing Stairs - (Easy)

 Problem You are climbing a staircase. It takes n steps to reach the top. Each time you...

Learn More 2 0Aug 4

C# LeetCode 69: Sqrt(x)

 Problem Given a non-negative integer x, return the square root of x rounded down to the...

Learn More 0 0Aug 4

C# LeetCode: 27 Remove Element

Problem Given an integer array nums and an integer val, remove all occurrences of val in...

Learn More 0 0Aug 4

C# LeetCode 58: Length of Last Word

Problem Given a string s consisting of words and spaces, return the length of the last...

Learn More 0 0Aug 4

C# LeetCode 28: Find the Index of the the First Occurrence in a String

Problem Given two strings needle and haystack, return the index of the first occurrence of...

Learn More 1 0Aug 4

C# LeetCode 21: Merge Two Sorted Lists

Problem: You are given the heads of two sorted linked lists list1 and list2. Merge the...

Learn More 0 0Aug 4

TS LeetCode 20: Valid Parentheses - (Easy)

Problem Given a string s containing just the characters '(', ')', '{', '}', '[' and ']',...

Learn More 0 0Aug 4

C# LeetCode 14: Longest Common Prefix

Problem Write a function to find the longest common prefix string amongst an array of...

Learn More 0 0Aug 4

C# LeetCode 13: Roman To Integer - (Easy)

This solution beat 99.94% of submissions for time This solution beat 77.21% of submissions for memory...

Learn More 0 0Aug 4