Aniss blog.aniss.dev·Apr 7, 2024Coding Game - Shadow Of The Knight 1 - SolutionDans un premier temps nous verrons ensemble l'énoncé du problème ainsi que le déroulement du programme, nous mettrons ensuite en place ensemble la solution. Le problème Objectif Vous allez rechercher les otages d'un bâtiment donné en sautant de fenêt...DiscussBinary Search Algorithm
Himanshu Chauhanhimanshuchauhan.hashnode.dev·Mar 26, 2024Day 40: Searching algorithms with PythonToday marks the fortieth day of my Python learning series. In this blog post, I am excited to share my latest discoveries on essential searching algorithms. These algorithms play a pivotal role in virtually every project, making them a fundamental as...DiscussPython 2Articles1Week
Nidal Iguerblog.inidal.dev·Mar 18, 2024Unlocking the Code: A Beginner's Guide to the Digital Frontier📝 Introduction for Beginners: This article is crafted to introduce programming concepts in a way that's accessible to beginners. It aims to simplify complex ideas into understandable terms. While this introduction serves as a great starting point, t...Discuss·30 readsDev Journeyparadigm
Vibhu Agarwalvibhu4agarwal.hashnode.dev·Mar 16, 2024Leetcode #2448 Minimum Cost to Make Array EqualRead the question here: https://leetcode.com/problems/minimum-cost-to-make-array-equal/description/ Let the final array be [k, k, k, k, ...] (all the elements being equal to k) k has to be in the range between min(nums) and max(nums) If we can try ...Discussdata structures
Md.Naimur Rahman (Navil)navilbyte.hashnode.dev·Mar 15, 2024Data Structure & Algorithm lDiscuss·1 like·386 readsUIU BSCSE CoursesDsa 1
Harshita Sharmaharshitawrites.hashnode.dev·Mar 7, 2024Ceiling & Floor of a number, Peak element in Mountain ArrayOn Day #3 of my learning journey, I delved into the fundamental concepts of Linear Search and Binary Search. I gained a profound understanding of Binary Search, recognizing its significance as one of the most fundamental and crucial concepts in compu...Discuss·3 likes#DSAwithKunal
Chetan Dattachetan77.hashnode.dev·Mar 5, 2024Lower and Upper Bound - Binary SearchI Lower Bound Problem You are given an array 'arr' sorted in non-decreasing order and a number 'x'. You must return the index of lower bound of 'x'. (link) Note: For a sorted array 'arr', 'lower_bound' of a number 'x' is defined as the smallest index...DiscussLeetcodeBinary Search Algorithm
Michael Roksmikeroks.hashnode.dev·Mar 3, 2024Never make a mistake in a Binary Search again!Binary Search is Hard (well, at least Medium) When writing code for binary search problems, it is common to make a "one-off" mistake in the implementation of the algorithm - to forget "whether it is 'mid+1' or just 'mid'". To solve this issue and fir...DiscussBinary Search Algorithm
Rafiul Hasanraphy.hashnode.dev·Feb 26, 2024Kth Smallest Element in a Row-wise and Column-wise Sorted MatrixProblem Link: LeetCode We are given a matrix in which the rows are sorted, and columns are sorted. WE have to find the kth smallest element in the matrix. There are many approaches. Applying Binary Search is one of them. Its time complexity is bit be...Discussleetcode
Ritwik Mathritwikmath.hashnode.dev·Feb 17, 2024Binary Search in PythonBinary Search: The concept of binary search is like finding a word in a dictionary. Imagine you're looking for a particular word, and the dictionary is sorted alphabetically. Initial Guess: You open the dictionary roughly in the middle and check the...Discussritwikmath