In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to carry out the program implementation of an interview question of C# algorithm. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
There are many ways to solve a face-to-face question in C # algorithm. Here is only one for you, so let's first look at the question:
C # algorithm an interview question: a, B, C, D, E five students may participate in the computer competition, according to the following conditions to determine who participated in the competition:
1. When A participates, B also participates
2, B and C only one person attended
3. C and D either participate or do not participate.
At least one of 4, D and E attends
5. If E participates, then both An and D also participate.
The program realization of a face-to-face question of C# algorithm:
Static void Main (string [] args). {char [] name=... {'A 'value = new int [5]; for (value [0] = 0) Value [0] = value [0]) & & (value [1] + value [2] = = 1) & (value [2] = = value [3]) & & (value [3] + value [4] = = 1) & (value [4] = = 0 | | value [4] = = 1 & value [0] = = 1 & value [ 3] = 1)) {for (int I = 0) I < 5; iTunes +) {if (value [I] = = 1)... {Console.WriteLine ("{0} attend", name [I]) } else... {Console.WriteLine ("{0} do not participate", name [I]) } this is the end of the program implementation of an interview question about the C# algorithm. I hope the above content can be of some help to you. You can learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.