title: How can I initialize a 2-d C# array to all of the same value?
body: <p>What I want to do is described in the comment below. How can I do, efficiently?</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.IO;
  class Solution {
      static void Main(String[] args) {
          int n = Int32.Parse(Console.ReadLine());
          bool[][] flags = new bool[26][n]; // I want this to be a 26 x n array of false values
          for(int k = 0; k &lt; n; ++k)
          {
              string line = Console.WriteLine();
              for(int i = 0; i &lt; line.Length; ++i)
                  flags[(int)line[i] - (int)'a'] = true;
          }
          int gems = flags.Count(arr =&gt; arr.Count(j =&gt; j == true) == arr.Length);       
          Console.WriteLine
      }
  }
  </code></pre>