Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • DSA
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps
    • Software and Tools
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • 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
  • Go Premium
  • Quantitiative Aptitude
  • Logical Reasoning
  • Verbal Ability
  • Aptitude Quiz
  • Quantitiative Aptitude Quiz
  • Verbal Ability Quiz
  • Aptitude For Placements
  • Interview Corner
  • Practice Sets
Open In App

Puzzle | The Counters and Board

Last Updated : 18 Jan, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

Given 2n counters where n > 1. You have to place these 2n counters on an n × n board so that no more than two counters are in the same row, column, or diagonal. Solution : Since we need to place 2n counters into n rows and n columns of the given n x n board, with the condition that there can be at most two counters in the same row or in the same column. From this , we can conclude that exactly two counters have to be placed in each row and column. Case 1 : For even n = 2k, we can obtain a solution by identical placement of n counters in the first k columns and the last k columns as explained below. Let us assume that rows and columns of the board are numbered top to bottom and left to right, respectively. Place two counters in the first two rows of columns 1 and k + 1, two counters in rows 3 and 4 of columns 2 and k + 2, and so on, until finally counters are placed in rows n - 1 and n of columns k and 2k. Let us understand this with the help of an example when n = 8 :

2n Counters problem for n = 8

Case 2 : For odd n = 2k + 1, k > 0, we can obtain a solution by placing two counters in rows 1 and 2 of column 1, two counters in rows 3 and 4 of column 2, and so on until counters are placed in rows n - 2 and n - 1 of column k. Then two counters are placed in the first and last rows of column k + 1. After that, k counters are placed in the right part of the board symmetrically with respect to the board’s central square to those in the left part: two counters are placed in rows 2 and 3 of column k + 2, in rows 4 and 5 of column k + 3, and so on, until rows n - 1 and n of the last column.Let us understand this with the help of an example when n = 7 :

2n counters problem for n = 7

References : Algorithmic Puzzles – Anany Levitin, Maria Levitin


S

Sahil_Bansall
Improve
Article Tags :
  • Aptitude
  • Arrangement Puzzles

Similar Reads

    Aptitude Questions and Answers
    Aptitude questions can be challenging, but with the right preparation and practice, you can tackle them with ease. Our comprehensive guide to aptitude questions and answers covers all the essential topics of Aptitude, including Quantitative Aptitude, Logical Reasoning, and Verbal Ability. Whether yo
    4 min read

    Quantitative Aptitude

    Numbers
    Numbers are the fundamental units of mathematics. In this article, we will discuss numbers, their types, important facts, divisibility rules, and other important points about numbers for aptitude preparation.Types of NumbersIntegers: All numbers whose fractional part is 0 (zero), like -3, -2, 1, 0,
    8 min read
    Ages
    Age aptitude questions involve using Algebraic Equations to determine the age of an individual based on the given data. While they may seem confusing at first, practice and a good understanding of the underlying concepts can help candidates become proficient in solving age-related problems.By master
    5 min read
    Profit and Loss
    Profit and loss are crucial topics in the Quantitative Aptitude sections of various competitive exams. To succeed in these exams, candidates must have a solid understanding of the cost price (CP) and selling price (SP) formulas, as well as the different types of profit and loss questions.Profit and
    5 min read
    Average - Solved Questions and Answers
    The average (or mean) is a single number that represents the central value of a set of numbers.Formula:Average = \frac {Number \ of \ values}{Sum \ of \ all \ values}Average questions and answers are provided below for you to learn and practice.Question 1: The average monthly salary of A and B is Rs
    6 min read
    Time Speed Distance
    Speed, distance, and time are essential concepts of mathematics that are used in calculating rates and distances. This is one area every student preparing for competitive exams should be familiar with, as questions concerning motion in a straight line, circular motion, boats and streams, races, cloc
    7 min read

    Logical Reasoning

    Number Series
    A number series is an ordered sequence of numbers arranged according to a specific mathematical rule or pattern. Each number in the series relates to the others through consistent operations like addition, subtraction, multiplication, division, exponents, or more complex relationships.Number Series
    5 min read
    Statement and Argument
    An argument is an opposing or supporting fact given against a statement. In this type of question, certain statements are given which are concerned with an issue, followed by certain arguments in favour or against that statement. Out of the following statements, we have to identify the correct argum
    3 min read
    Alphanumeric Series
    An alphanumeric series is formed by combining both alphabets and numbers. Sometimes it also includes symbols such as @,&,#, etc. So we can say that the Alphanumeric series is the combination of alphabets, numbers, and symbols. This is an important topic that needs to be covered for the Logical R
    3 min read
    Theme Detection - Solved Questions and Answers
    A theme is the central idea, message, or insight that a piece of writing conveys. Unlike the topic (which is the subject matter), the theme reflects the deeper meaning or universal truth the author wants to communicate.Theme Detection questions and answers are provided below for you to learn and pra
    6 min read
    Letter Series
    A letter series is a sequence of letters that follows a specific logical rule or pattern. The challenge is to decipher the underlying rule and determine the missing letter(s) or the next letter(s) in the sequence. These letter sequences follow particular patterns to challenge candidates to figure ou
    2 min read

    Verbal Reasoning

    Direction Sense
    Direction is part of the reasoning in which you identify the direction of a person or an object. Direction can be defined as the direction or path that something is going or is intended to move in, as well as the axis that something is facing or pointing along. The four major directions are north, e
    2 min read
    Verbal Analogies
    Verbal ability questions form an integral part of competitive exams. They are used to gauge the logical reasoning skills of the candidates. There are various types of verbal ability questions. This article will discuss about one such type of verbal ability questions- Verbal analogy. To crack a verba
    2 min read
    Venn Diagrams
    A Venn diagram is a visual representation that uses overlapping shapes to illustrate the relationships between different groups or sets. The overlapping regions represent common elements shared between groups, while the non-overlapping areas show elements unique to each group. This clear and concise
    2 min read
    Blood Relation
    Blood relation reasoning involves reaching the conclusion by applying the rules of relationships within a family structure, often through direct or coded questions, and mastering it requires understanding familial connections and practicing logical deductions.A blood relation test, also known as a "
    5 min read
    Course of Action
    A statement is a factual scenario or a problem given, and a course of action is the possible step or action that can be taken to address the problem.Statement and Course of Action questions require understanding the statement and evaluating the suggested actions to address the issue. The statement p
    2 min read

    Verbal Ability

    Synonyms
    Looking to brush up on your synonyms skills for a government exam? This page has got you covered! It provides you with a list of important Synonyms questions and answers featured in the English sections of different competitive exams. As many as 2-3 marks worth of synonym questions may come up in th
    1 min read
    Idioms and Phrases
    Idioms and phrases are an important concept of English comprehension, which is often asked in competitive exams. Candidates preparing for competitive exams or interviews must practice the questions of idioms and phrases to score well in the Verbal Ability section. In the following article, we are go
    4 min read
    Change of Speech
    The "Change of Speech" means the way we speak changes depending on who we're talking to, where we are, or when we're repeating someone else's words. It’s about adjusting our language to fit the situation, like speaking more formally at work or casually with friends, quoting someone’s exact words, or
    3 min read
    Cloze Test
    A cloze test is an exercise that evaluates a person's understanding of language, vocabulary, and grammar. In a cloze test, words are removed from a passage or sentence, and the person must fill in the gaps with the most appropriate words.Types of questionsVocabulary-based: Focus on selecting the cor
    2 min read
    Change of Voice
    The forms of verbs that show the "subject doing an action" or " an action done on the subject" are called voice. Change of voice means converting a sentence from the Active to the Passive Voice or vice versa, without changing the original meaning.Types of VoiceThere are two voices in the English lan
    5 min read
    One Word Substitutes
    One Word Substitution simplifies language by replacing lengthy phrases with single, precise words. It's a key verbal ability skill tested in exams and useful for clear communication. One-Word Substitution ExamplesLet's understand One Word Substitution with a few examples as below-He is a person who
    3 min read

    Non-Verbal Reasoning

    Mirror Image: Verbal Reasoning
    Mirror Image Questions are mostly asked in the Logical Reasoning section of competitive examinations. So candidates need to prepare well by practicing some Mirror Images Questions given below. When we see ourselves in a mirror or see anything in a mirror, the way we see ourselves in a mirror or the
    5 min read
    Embedded Images
    Non Verbal Reasoning Embedded Images: Embedded Images is an interesting topic in logical thinking. It's about finding hidden pictures or shapes inside bigger pictures or designs. This skill is useful in things like puzzles, recognizing patterns, and getting better at understanding where things are i
    2 min read
    Pattern Completion
    Non Verbal Reasoning Pattern Completion: Pattern Completion is a captivating concept within logical reasoning. It involves exploring patterns and sequences, challenging individuals to recognize and complete logical progressions. This skill is crucial for problem-solving, critical thinking, and under
    2 min read
    Non Verbal Reasoning : Paper Folding
    Many competitive exams such as SSC CGL commonly ask paper folding-based questions. In this type of reasoning-based question, a piece of paper with a pattern on it is folded in half or so, and candidates need to determine how the paper will look after folding or opening. How to Solve Paper Folding Qu
    6 min read
    Cubes and Dice Reasoning Questions: Practices, Tricks(PDF Download)
    Cubes and Dice are used as visual tools to present problems that involve spatial reasoning, visualization, and pattern recognition. Cubes and Dice Non Verbal Reasoning questions are used to assess a person's ability to mentally manipulate and understand three-dimensional objects.In this Article, We
    6 min read
    Picture Analogies Questions - Non Verbal Reasoning
    Picture Analogies is about looking at pictures and understanding them better. It's like finding connections between sets of images and using that to solve problems, think smartly, and grasp tricky ideas. Picture Analogies includes non-verbal reasoning practices to solve the problem. At its core, Pic
    4 min read

    Practice

    Online Aptitude Test: For Jobs, Placements, and More
    Aptitude test is an exam which tests individual skills or potential to succeed in a particular task or area. In simple terms, an aptitude test is a type of assessment that helps to determine a person's natural abilities and talent.Every Aptitude Test is designed to measure how well someone can perfo
    5 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Job-A-Thon
  • Community
  • Videos
  • Blogs
  • Nation Skill Up
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • Interview Preparation
  • GATE
  • Software and Tools
  • Courses
  • IBM Certification
  • DSA and Placements
  • Web Development
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • Trending Technologies
  • Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
  • Preparation Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • DSA 360
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences