Category: java
If we want to know whether a given string has repeated characters, the simplest way is to use the existing method of finding first occurrence from the end of …
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input …
Here is a few questions that I find it useful for preparing the interviews (Java). A few thing you have to know first: It is possible to have more …
USB OTG (On The Go) allows some USB devices to act as both master and slave at different times. For example, when a printer connects to a PC, the …
Today I need a Java function to check if a given time string e.g. 20130218001203638, (e.g, 18 of Feb, 2013) is weekend, i.e Saturday or Sunday. So, the following …