---
title: "Discussion on \"Bit Strings\" | Hashnode"
description: "Discussion on \"Bit Strings\". Your task is to calculate the number of bit strings of length n.\nFor example, if n=3, the correct answer is 888, because the possible bit strings are 000, 001, 010, 011, 100, 101, 110, and 111.\nInput\nThe only input line has an integer n.\nOutput\nPrint..."
url: "https://hashnode.com/posts/bit-strings/65c32e0219fea7fa0fc33ab6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Bit Strings](https://ramandeepsingh.hashnode.dev/bit-strings?utm_source=hashnode&utm_medium=feed)

Your task is to calculate the number of bit strings of length n. For example, if n=3, the correct answer is 888, because the possible bit strings are 000, 001, 010, 011, 100, 101, 110, and 111. Input The only input line has an integer n. Output Print...

Feb 7, 2024 · 2 min read · ramandeepsingh.hashnode.dev  
Read the article

## Written by

[Ramandeep Singh](https://hashnode.com/@ramandeepSingh)

@ramandeepSingh · Rajasthan, India

  
[View profile](https://hashnode.com/@ramandeepSingh)

Enlivening the Dreams :D

A programming enthusiast trying to give share my knowledge with the community :D

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
