インタビュー内のI/oコンソール
Last updated: December 24, 2024
概要
The I/O Console is where users assess their code by running it against the custom input and checking its output. The I/O Console also helps the users to check the result of the test cases provided in a question.
The interviews platform provides a split view interface that lets the users see the code editor and I/O Console side by side, utilizing the maximum available screen. This enables the users to see the maximum portion of their lines while checking its result.
I/Oコンソールへのアクセス
The I/O console in an interview is closed by default. To access the I/O Console, you can go to the right pane of the interview screen and click on the I/O button.
This will split your screen into two parts where you can see your code and the I/O Console side by side.
カスタム入力の使用
I/Oコンソールの上部には、入力/出力、テストケース、およびコンソールの3つのタブがあります。入力/出力タブを選択すると、入力スペースに入力を行い、画面下部のコード実行ボタンをクリックして、カスタム入力に対してコードを確認できます。
コンパイルが成功した場合、結果はあなたの出力スペースに表示されます。
コード実行を停止したい場合は、コード実行をクリックした後に表示される中止ボタンをクリックできます。
テストケースの実行
カスタム入力のコンパイルが成功した場合、タブの上部に「コンパイル成功。テストを実行できます」というメッセージが表示されます。このクリック可能な表記をクリックすると、テストケースが実行され、結果にアクセスできるテストケースタブに移動します。
コンソールの上部にあるテストケースタブをクリックして、テストケースに直接アクセスすることもできます。ページの下部にある「テストを実行」をクリックして、テストケースを実行してください。
いずれかの方法でテストケースを実行すると、結果がテストケースタブの上部に表示されます。
インターフェースは、テストケースのステータスと合格したテストケースの数を表示します。
テストケースドロップダウンから希望のテストケースを選択できます。
選択したテストケースの入力、出力、および期待される出力が表示されます。
ロックアイコンのある隠しテストケースは、候補者には表示されません。
これらのフィールドは展開および折りたたむこともでき、下の図のように表示されます。