Skip to content
Tuesday, March 3, 2026
Latest:
  • Understanding Quick Sort for coding interviews
  • Understanding Insertion Sort for coding interviews
  • Understanding Bubble Sort for coding interviews
  • Understanding selection sort for coding interviews
  • Generate binary numbers using a queue

    • HOME
    • C++
    • SYSTEM DESIGN
    • ENGINEERING MANAGEMENT
    • ABOUT
    A CODERS JOURNEY

    Month: May 2019

    Generate binary numbers using a queue
    ALLCODE CRAFT
    May 11, 2019 Deb Haldar

    Generate binary numbers using a queue

    Problem

    Generate binary numbers from 1 to any given number, “n”, using a queue.

    Function Signature

    List<string> GenerateBinaryNumber(int n)

    Example Input and Output

    n = 1 => (1)

    n = 3 => ( 1, 10, 11)

    Problem Solving Strategy

    Assuming …

    Read More

    Popular Posts

    • Top 20 C pointer mistakes and how to fix them
      Top 20 C pointer mistakes and how to fix them
    • Top 20 C++ multithreading mistakes and how to avoid them
      Top 20 C++ multithreading mistakes and how to avoid them
    • Top 10 dumb mistakes to avoid with C++ 11 smart pointers
      Top 10 dumb mistakes to avoid with C++ 11 smart pointers
    • Understanding Bubble Sort for coding interviews
      Understanding Bubble Sort for coding interviews
    • 6 Tips to supercharge C++11 vector performance
      6 Tips to supercharge C++11 vector performance
    • How to send email using C# and Outlook.com
      How to send email using C# and Outlook.com
    • Top 10 C++ header file mistakes and how to fix them
      Top 10 C++ header file mistakes and how to fix them
    • System Design Interview Concepts – Database Sharding
      System Design Interview Concepts – Database Sharding
    • ABOUT
      ABOUT
    • 20 ABI (Application Binary Interface) breaking changes every C++ developer should know
      20 ABI (Application Binary Interface) breaking changes every C++ developer should know

    Archives

    • November 2019 (1)
    • September 2019 (3)
    • May 2019 (1)
    • April 2019 (3)
    • March 2019 (1)
    • December 2018 (2)
    • September 2018 (1)
    • August 2018 (2)
    • July 2018 (2)
    • May 2018 (1)
    • April 2018 (1)
    • October 2017 (1)
    • August 2017 (2)
    • January 2017 (1)
    • November 2016 (1)
    • October 2016 (2)
    • August 2016 (1)
    • June 2016 (2)
    • May 2016 (4)
    • April 2016 (2)
    • March 2016 (1)
    • February 2016 (3)
    • January 2016 (3)

    Recent posts

    • Understanding Quick Sort for coding interviews
    • Understanding Insertion Sort for coding interviews
    • Understanding Bubble Sort for coding interviews
    • Understanding selection sort for coding interviews
    • Generate binary numbers using a queue
      Copyright © 2026 A CODERS JOURNEY. All rights reserved.
      Theme: ColorMag by ThemeGrill. Powered by WordPress.