📎 Webclip
What I Learned About C# From Job Interviews
The post says coding interviews pushed the author to use C# features that are less common in day-to-day work but useful for algorithm problems. It focuses on multidimensional arrays, tuples, binary operators, and a few string and array methods, then adds interview habits that helped in practice.
Reading notes#
- Multidimensional arrays are useful in coding exercises, especially for 2D or 3D problems such as a maze or a cube, and they are different from jagged arrays.
- Tuples are presented as a compact alternative to classes when returning small groups of values in interview code.
- Bitwise operators such as
<<,>>,&, and|can help with permutation-style problems, including generating all combinations of items. string.Join,Array.Sortwith aComparison<T>, andArray.Copyare highlighted as practical helpers for interview problems.- Python solutions are described as shorter and often cleaner than C# solutions for algorithm questions.
- Preparation matters, and the author recommends practicing on LeetCode, starting with easy problems, spending more time on medium ones, and reviewing other submissions.
- Most interview questions, in the author’s experience, are medium-level and often involve DFS, BFS, binary trees, or heaps.
- Before writing code, it helps to think through the solution, explain it out loud, and check whether it can be simpler or more optimal.
- Short variable and method names are recommended for interview settings.
- The post closes by saying big-company interviews also include system design and behavioral questions, and the author says he is starting a new position at Microsoft.
