Skip to main content
edited title and tags
Link
t3chb0t
  • 44.3k
  • 9
  • 84
  • 190

Letter Combinations of a phone number C# .NETusing a Dictionary

Tweeted twitter.com/StackCodeReview/status/1179365557621141504
Became Hot Network Question
formatting
Source Link
dfhwze
  • 13.9k
  • 3
  • 38
  • 101

problem

Greetings

I have seen and read the reviews for the above problem, and made the modifications suggested. I did see the comment on using LINQ, I am learning how to use them and don't fully understand it yet. I successfully submitted my answer to LeetCode, but I would like a review to see what else I can do to improve the code. I noticed the code uses more memory than most submissions on LeetCode and I wonder if I can find out why here. Problem statement:

Problem statement (online source)

I have seen and read the reviews for the above problem, and made the modifications suggested. I did see the comment on using LINQ, I am learning how to use them and don't fully understand it yet. I successfully submitted my answer to LeetCode, but I would like a review to see what else I can do to improve the code. I noticed the code uses more memory than most submissions on LeetCode and I wonder if I can find out why here.

My code is based on a tutorial I watched. While it was in Java, I typed my code in C#. It recursively calls the method that looks into the objects of a Dictionary and concatenates the data inside them in the desired format.

  I am new to programming so I looked up stuff online and made some assumptions on equivalent data structures in C#.

  For example, the original code used a HashMapHashMap, and saw a recommendation online to used Dictionary<T, T>Dictionary<T, T> in C#.

problem

Greetings

I have seen and read the reviews for the above problem, and made the modifications suggested. I did see the comment on using LINQ, I am learning how to use them and don't fully understand it yet. I successfully submitted my answer to LeetCode, but I would like a review to see what else I can do to improve the code. I noticed the code uses more memory than most submissions on LeetCode and I wonder if I can find out why here. Problem statement:

My code is based on a tutorial I watched. While it was in Java, I typed my code in C#. It recursively calls the method that looks into the objects of a Dictionary and concatenates the data inside them in the desired format.

  I am new to programming so I looked up stuff online and made some assumptions on equivalent data structures in C#.

  For example, the original code used a HashMap, and saw a recommendation online to used Dictionary<T, T> in C#.

Problem statement (online source)

I have seen and read the reviews for the above problem, and made the modifications suggested. I did see the comment on using LINQ, I am learning how to use them and don't fully understand it yet. I successfully submitted my answer to LeetCode, but I would like a review to see what else I can do to improve the code. I noticed the code uses more memory than most submissions on LeetCode and I wonder if I can find out why here.

My code is based on a tutorial I watched. While it was in Java, I typed my code in C#. It recursively calls the method that looks into the objects of a Dictionary and concatenates the data inside them in the desired format. I am new to programming so I looked up stuff online and made some assumptions on equivalent data structures in C#. For example, the original code used a HashMap, and saw a recommendation online to used Dictionary<T, T> in C#.

edited tags; edited tags
Link
dfhwze
  • 13.9k
  • 3
  • 38
  • 101
code formatting / title / other formatting
Source Link
Linny
  • 10.4k
  • 5
  • 37
  • 99
Loading
Source Link
Shahin
  • 103
  • 3
Loading