mekkj98.hashnode.devleetcode: Median of Two Sorted Arrays Problem in C++Introduction: Finding the median of two sorted arrays efficiently. In this blog post, we'll explore how to solve this problem in C++, achieving a runtime complexity of O(log(m+n)). Problem Statement: Given two sorted arrays nums1 and nums2 of size m ...Apr 11, 2024·4 min read
mekkj98.hashnode.devImplement Theme Provider to Change Themes without Wrapping Children in Context in Next.js/React.JsIntroduction In Web applications, theming plays a crucial role in providing a personalised and visually appealing user experience. One common approach is to use a ThemeProvider Context to manage themes across the application. There is no problem with...Apr 10, 2024·3 min read
mekkj98.hashnode.devReveal Cards In Increasing Order - Leetcode 950Description You are given an integer array deck. There is a deck of cards where every card has a unique integer. The integer on the i'th card is deck[i]. You can order the deck in any order you want. Initially, all the cards start face down (unreveal...Apr 10, 2024·3 min read