Skip to content
Saturday, August 9, 2025
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

    • C++ 11 Auto: How to use and avoid abuse
      C++ 11 Auto: How to use and avoid abuse
    • 20 ABI (Application Binary Interface) breaking changes every C++ developer should know
      20 ABI (Application Binary Interface) breaking changes every C++ developer should know
    • Top 15 C++ Exception handling mistakes and how to avoid them.
      Top 15 C++ Exception handling mistakes and how to avoid them.
    • Event based synchronization of threads with main game loop
      Event based synchronization of threads with main game loop
    • System Design Interview Concepts - Consistent Hashing
      System Design Interview Concepts - Consistent Hashing
    • Understanding selection sort for coding interviews
      Understanding selection sort for coding interviews

    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 © 2025 A CODERS JOURNEY. All rights reserved.
      Theme: ColorMag by ThemeGrill. Powered by WordPress.