© 2022 Hashnode

#leetcode

Given a roman numeral, we need to convert it to an integer. After seeing the problem, I thought that I can try with an object to store the roman symbol value and for loop to access the given string. S…

An Easy category problem which requires a sound understanding of BSTs to solve efficiently. With the seven th problem of the December leetcoding challenge https://leetcode.com/problems/range-sum-of-bs…

Question link -> https://leetcode.com/problems/word-break/ Question - Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or…

Hello, reader 👋🏽 ! Welcome to day 66 of the series on Problem Solving. Through this series, I aim to pick up at least one question everyday and share my approach for solving it. Today, I will be pic…

Hello, reader 👋🏽 ! Welcome to day 65 of the series on Problem Solving. Through this series, I aim to pick up at least one question everyday and share my approach for solving it. Today, I will be pic…

Problem statement Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list's nodes (i.e., only nodes themselves may b…

Hello, reader 👋🏽 ! Welcome to day 64 of the series on Problem Solving. Through this series, I aim to pick up at least one question everyday and share my approach for solving it. Today, I will be pic…

Hi there, in this article I will share with you the required info on how to solve Shuffle the Array problem on LeetCode. Problem Given the array nums consisting of 2n elements in the form [x1,x2,...,x…

Hello, reader 👋🏽 ! Welcome to day 63 of the series on Problem Solving. Through this series, I aim to pick up at least one question everyday and share my approach for solving it. Today, I will be pic…

The third problem of the December leetcoding challenge https://leetcode.com/problems/sort-characters-by-frequency/ is a Medium category problem which was fun to solve and I could come up with the solu…