Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
C++ Programs
2.4k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Matrix
1.2k+ articles
Bit Magic
1.2k+ articles
cpp-puzzle
32 articles
programming-puzzle
49 posts
Popular Articles
Recent Articles
Number of wins for each player in a series of Rock-Paper-Scissor game
Last Updated: 02 August 2021
Two players are playing a series of games of Rock–paper–scissors. There are a total of K games played. Player 1 has a sequence of moves
...read more
Algorithms
programming-puzzle
DSA
Pizza Problem
Last Updated: 13 March 2023
Given an integer N and a pizza which can be cut into pieces, each cut should be a straight line going from the center of the pizza to its bo
...read more
School Programming
C++ Programs
programming-puzzle
DSA
Find the non decreasing order array from given array
Last Updated: 23 June 2022
Given an array A[] of size N / 2, the task is to construct the array B[] of size N such that:B[] is sorted in non-decreasing order.A[i] = B[
...read more
Greedy
Mathematical
Competitive Programming
programming-puzzle
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
C++ Programs
2.4k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Matrix
1.2k+ articles
Bit Magic
1.2k+ articles
cpp-puzzle
32+ articles
Minimum amount of lamps needed to be installed
Last Updated: 09 September 2022
Given string str containing only dots and asterisk. A dot represents free spaces and[Tex]*[/Tex]represents lamps. A lamp at position[Tex]i[/
...read more
Strings
programming-puzzle
DSA
Josephus Problem | (Iterative Solution)
Last Updated: 20 March 2023
There are N Children are seated on N chairs arranged around a circle. The chairs are numbered from 1 to N. The game starts going in circles
...read more
Searching
Game Theory
programming-puzzle
DSA
Subtract 1 without arithmetic operators
Last Updated: 15 February 2025
Write a program to subtract one from a given number. The use of operators like ‘+’, ‘-‘, ‘*’, ‘/’, ‘++’, ‘–‘ …et
...read more
Bit Magic
Mathematical
programming-puzzle
DSA
Solve the Crossword Puzzle
Last Updated: 19 October 2023
A 10 x 10 Crossword grid is provided, along with a set of words (or names of places) which need to be filled into the grid. The cells in the
...read more
Matrix
cpp-string
Recursion
programming-puzzle
DSA
Swapping four variables without temporary variable
Last Updated: 18 September 2022
Suppose we have four variables a, b, c, d and we want to perform swapping of these variables in the following mannera = b, b = c, c = d, d =
...read more
Mathematical
programming-puzzle
DSA
Reaching a point using clockwise or anticlockwise movements
Last Updated: 20 February 2023
Given starting and ending position and a number N. Given that we are allowed to move in only four directions as shown in the image below. Th
...read more
Mathematical
programming-puzzle
DSA
Basic Coding Problems
Fill 8 numbers in grid with given conditions
Last Updated: 07 July 2021
Place the numbers 1, 2, 3, 4, 5, 6, 7, 8 into the eight circles in the figure given below, in such a way that no number is adjacent to a num
...read more
Backtracking
programming-puzzle
DSA
Check if it is possible to survive on Island
Last Updated: 20 February 2023
You are a poor person in an island. There is only one shop in this island, this shop is open on all days of the week except for Sunday. Cons
...read more
Greedy
Puzzles
programming-puzzle
DSA
Basic Coding Problems
Cleaning the room
Last Updated: 05 April 2023
Given a room with square grids having '*' and '.' representing untidy and normal cells respectively. You need to find whether room can be cl
...read more
Competitive Programming
programming-puzzle
DSA
Container with Most Water
Last Updated: 16 January 2025
Given an array arr[] of non-negative integers, where each element arr[i] represents the height of the vertical lines, find the maximum amoun
...read more
Mathematical
Competitive Programming
Puzzles
programming-puzzle
DSA
Print reverse of a Linked List without extra space and modifications
Last Updated: 29 March 2024
Given a Linked List, display the linked list in reverse without using recursion, stack or modifications to given list.Examples:Input: 1-2-3-
...read more
Linked List
programming-puzzle
DSA
Check if a number is positive, negative or zero using bit operators
Last Updated: 06 February 2023
Given a number N, check if it is positive, negative or zero without using conditional statements.Examples:Input : 30Output : 30 is positiveI
...read more
Bit Magic
programming-puzzle
DSA
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !