You are not logged in. Please login at to post your questions!


weak test in encoder this solution should be incorrect because not considering diagonal case but gives right answer. weak test case

This question is marked "community wiki".

asked 27 Oct '18, 00:51

ajaymalik's gravatar image

accept rate: 0%

Even in Second Largest Element problem,
This solution gives output as 1 for [3,3,3,3,3] and K=3.
Answer should be 0 I guess.

(27 Oct '18, 01:15) vohraa3★

I found the same thing. The test cases are checking for only CHECK position and not for CHECKMATE position ;

Only CHECK CHECKER got AC. The real solution should be this.


answered 27 Oct '18, 01:04

thesmartguy's gravatar image

accept rate: 7%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 27 Oct '18, 00:51

question was seen: 196 times

last updated: 27 Oct '18, 01:21