WesomeOrg100 doors Toggle PuzzleGiven 100 doors, all are closed initially, with each iteration, the current state of the door will be reversed or toggled, ie if the door…Jul 29, 2023Jul 29, 2023
WesomeOrgLearn Spring Data JPAJPA (Java Persistent API) is the Java specification for persisting and storing objects also known as Object Relational Mapping (ORM) in…Jun 27, 20231Jun 27, 20231
WesomeOrgJunit 5 @TagA method needs to be tested for multiple scenarios, multiple scenarios will have multiple test case methods, and we may require to test a…Jun 22, 2023Jun 22, 2023
WesomeOrgFind the maximum pair of consecutive valid parenthesisConsecutive valid parenthesis is when both opening and closing brackets are present just after one another and in a consecutive manner. For…Jun 4, 2023Jun 4, 2023
WesomeOrgFind Any Peak element in Multiple Mountain Arrays or K Sorted Mountain ArrayMonotonic arrays are sorted in ascending or descending order such as 1, 2, 3, 4, 5 or 5, 4, 3, 2, 1 Bitonic or Mountain arrays have…Feb 15, 2023Feb 15, 2023
WesomeOrgBit ManipulationIn computers everything is stored as a bit, in simple words 0 and 1, every integer every number are internally stored as a bit. 1 byte…Feb 5, 2023Feb 5, 2023
WesomeOrgMySQL ConstraintsEach table has some rules that allow the type of data to be inserted into the table, those rules are called Constraints. Constraints make…Oct 23, 2022Oct 23, 2022
WesomeOrgJunit 5 Test Class LifecycleA JUnit 5 test case needs to get through multiple life cycles. Primarily there is 4 major life cycle of Junit 5 ie @BeforeAll, @BeforeEach…Aug 18, 2022Aug 18, 2022
WesomeOrgVariable used in Lambda Expression Should be Final or Effectively FinalAnonymous Classes in java are inner classes without a name, these are used in java to override the method without actually creating a…Jun 29, 2022Jun 29, 2022
WesomeOrgJunit 5 Asserts ExceptionsA good coding practice is to throw exceptions when data is invalid. A better test case is to check whether for invalid argument, the…Jan 2, 2022Jan 2, 2022