geeksforgeeks
search icon
  • Courses
  • Tutorials
  • Practice
  • Jobs
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
When do we pass arguments by pointer?In C, the pass-by pointer method allows users to pass the address of an argument to the function instead of the actual value. This allows programmers to change the actual ... Read More
C++pointerC-Pointers
Python Program for N Queen Problem | Backtracking-3The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, the following is a solution for 4 Queen pro... Read More
PythonPython DSA-exercises
Java Program for N Queen Problem | Backtracking-3The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, the following is a solution for 4 Queen pro... Read More
Java
C Program for N Queen Problem | Backtracking-3The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, the following is a solution for 4 Queen pro... Read More
C Language
N Queen ProblemPlace n queens on an n×n chessboard so that no two attack each other (same row, column, or diagonal). Return all valid arrangements, where each solution shows the column p... Read More
BacktrackingDSAAmazonTwitterAccoliteMAQ SoftwareVisaAmdocschessboard-problems
Python Program for Rat in a Maze | Backtracking-2We have discussed Backtracking and Knight's tour problem in Set 1. Let us discuss Rat in a Maze as another example problem that can be solved using Backtracking.Consider a... Read More
Python
Java Program for Rat in a Maze | Backtracking-2We have discussed Backtracking and Knight's tour problem in Set 1. Let us discuss Rat in a Maze as another example problem that can be solved using Backtracking.A Maze is ... Read More
Java
C Program for Rat in a Maze | Backtracking-2We have discussed Backtracking and Knight's tour problem in Set 1. Let us discuss Rat in a Maze as another example problem that can be solved using Backtracking.Consider a... Read More
C Language
Rat in a MazeGiven a binary matrix maze[][] of size n × n containing values 0 and 1, find all possible paths for a rat to travel from the source cell (0, 0) to the destination cell (n ... Read More
BacktrackingMatrixDSAAmazonFlipkartDrishti-SoftYatra.comExpediaPaytmMakeMyTripVisaGrofersNumerifyZycus
The Knight's TourGiven an integer n, consider an n × n chessboard. A Knight starts at the top-left corner (0, 0) and must visit every cell exactly once following the Knight’s standard move... Read More
BacktrackingMathematicalDSAAmazonchessboard-problems
Multidimensional Pointer Arithmetic in C/C++In C/C++, arrays and pointers have similar semantics, except on type information.As an example, given a 3D arrayint buffer[5][7][6];An element at location [2][1][2] can be... Read More
C++pointer
Edit DistanceGiven two strings s1 and s2 and below operations that can be performed on s1. The task is to find the minimum number of edits (operations) to convert 's1' into 's2'.  Inse... Read More
Dynamic ProgrammingDSAAmazonedit-distance
How does free() know the size of memory to be deallocated?Consider the following prototype of free() function which is used to free memory allocated using malloc() or calloc() or realloc().C void free(void *ptr); ... Read More
C LanguageC-Dynamic Memory Allocation
Spaghetti Stack Spaghetti stackA spaghetti stack is an N-ary tree data structure in which child nodes have pointers to the parent nodes (but not vice-versa)Spaghetti stack structure is u... Read More
StackAdvanced Data StructureDSA
Minimum distance between two in an arrayGiven an unsorted array arr[] and two numbers x and y, find the minimum distance between x and y in arr[]. The array might also contain duplicates. You may assume that bot... Read More
DSAArraysPaytm
1

...

12124121251212612127
GeeksforGeeks
location
Corporate & Communications Address:
A-143, 6th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
location
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play StoreGFG App on App Store
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Careers
  • Contact Us
  • Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Practice Problems
  • Blogs
  • Upskill Courses
  • Connect
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • GATE
  • School Subjects
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Data Science
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • MongoDB Certifications
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved