Gowthaman Ravigowthy.hashnode.dev·3 hours agoReverse Words in a String III | Leetcode problem No. 556 | StringGiven a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: s = "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Example 2: Input: s ...Discussleetcode

Alankrit Vermaalankrit.hashnode.dev·16 hours agoThe Two Pointers Algorithm: A Comprehensive GuideThe Two Pointers Algorithm is a versatile technique used in solving array and string manipulation problems, especially when dealing with sorted arrays or linked lists. It is a crucial tool for developers and competitive programmers due to its efficie...DiscussComputer Science

Gowthaman Ravigowthy.hashnode.dev·Sep 30, 2023132 Pattern | Leetcode 456 | Monotonic StackGiven an array of n integers nums, a 132 pattern is a subsequence of three integers nums[i], nums[j] and nums[k] such that i < j < k and nums[i] < nums[k] < nums[j]. Return true if there is a 132 pattern in nums, otherwise, return false. Example 1: I...Discussleetcode

Christopher Coffeecmcoffeedev.hashnode.dev·Sep 30, 2023Leetcode: Single Number (Kotlin)Single Number is an easy question on Leetcode. I will discuss the problem and my solution below. Single Number - LeetCode*Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must…*leetcode.c...DiscussKotlin

Aditya Karadcodingchronicles.adityakarad.com·Sep 30, 2023How to make a configurable Priority Queues in C++ for solving problems.What is min-heap and max-heap? Usually, priority queues are used in greedy solutions in Leetcode problems and OAs. Priority queues allow for O(log N) insertion into a data structure which keeps items sorted according to a logic defined by the program...Discuss·213 readsC++

Fareed S.fareedatcp.hashnode.dev·Sep 30, 2023Recursion Part-2Recap This is another continuation of my previous blog on recursion. So we have now learned that in a recursive function, the function will be calling itself inside init and there must be a/many base cases that can prevent calling this function based...Discusscoding

MOHAMMAD SAHILmdsahil.hashnode.dev·Sep 29, 2023"Coding Milestone: 140+ LeetCode Solutions & Insights"🚀 Exciting Milestone Achieved: Solved 140+ LeetCode Questions! 🎉Dear LinkedIn community,I am thrilled to share a personal achievement with all of you today. I've successfully tackled 140+ LeetCode questions, and I'd like to take this opportunity to...Discuss·1 like#DSAwithKunal

Jonathan Rufus Samueldijkstra.hashnode.dev·Sep 29, 2023Two Sum - Leetcode #1Question Given 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 ret...Discussarray

harsh sehrawatharsehrawat.hashnode.dev·Sep 27, 2023Day 18/90DaysOfCoding-Solved sheets half of Array's hard LeetCode problems. -Learnt Binary Search in 2D Matrix . -Search in Sorted Matrix . @kunalstwt @hashnode @WeMakeDevs #WeMakeDevsDiscussDSA

Olalekan AbdulfatahProblog.lekan.dev·Sep 26, 2023Leet389: Find The Difference.Intro You very likely missed the intro article A.K.A disclaimer, to this series but here goes. This is the first actual article with real content (for this series) and, we are tackling an easy leetcode problem, I attempted the champagne glass that wa...Discuss·13 likes·54 readscompatetive programminglearning