Chetan Dattachetan77.hashnode.dev·Sep 6, 2024Word SearchProblem Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The s...DiscussLeetcodeword-search

Chetan Dattachetan77.hashnode.dev·Sep 4, 2024M-Coloring ProblemProblem Given an undirected graph and an integer M. The task is to determine if the graph can be colored with at most M colors such that no two adjacent vertices of the graph are colored with the same color. Here coloring of a graph means the assignm...DiscussLeetcodem-coloring-problem

Chetan Dattachetan77.hashnode.dev·Sep 2, 2024Sudoko SolverProblem Write a program to solve a Sudoku puzzle by filling the empty cells. (link) A sudoku solution must satisfy all of the following rules: Each of the digits 1-9 must occur exactly once in each row. Each of the digits 1-9 must occur exactly onc...DiscussLeetcodesudoko-solver

Chetan Dattachetan77.hashnode.dev·Sep 1, 2024N-QueensProblem The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. (link) Given an integer n, return all distinct solutions to the n-queens puzzle. You may return the answer in any order. ...DiscussLeetcoden-queens

Fatima Jannatmahia.hashnode.dev·Aug 31, 2024Bonus Challenging Recursion ProblemsNote : If you're new to Data Structures and Algorithms in Python, it's a good idea to skip this part for now and come back after you've completed all the data structures sections. power Write a function called power which accepts a base and an expone...DiscussDSA

Chetan Dattachetan77.hashnode.dev·Aug 28, 2024Combination Sum 1Problem Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be ch...DiscussLeetcodeRecursion

Chetan Dattachetan77.hashnode.dev·Aug 25, 2024RecursionIntroduction Recursion When a function calls itself until a specified condition is met. f(){ print(1); f(); } Stack Space Base Case The condition that stops the recursion is called the base case. //cnt is a global variable f(){ if(...DiscussLeetcodeparameterized recursion

Malavi Pandemalavibolg.hashnode.dev·Aug 21, 2024Understand the recursion without stackFor get about the recursion for some time. Just we recall how the basic function works. def fun(): return 'Malavi Pande' output = fun() print(output) output : Malavi Pande most of the people say to moving forward with recursion one need to und...Discuss·1 likeRecursion

evaristo.cre-versing.hashnode.dev·Aug 20, 2024Making recursive tangent circles inside circles and animate themSome people find circles a fascinating shape. Circles are surrounded by mathematical paradigms. For example: did you know that even if circles are closed curves they still are ruled by one of the most interesting irrational numbers, Pi, which is a tr...Discusstangent-circles

Gagan G Saralayagagang.hashnode.dev·Aug 17, 2024Functions and Class in PythonWhen you have a large code and you have to use a block of code multiple times in different area of the code functions are used. A function is a block of code which can be called in different area of the program. I personally feel that functions are o...DiscussPython