Learn·Dec 15, 2025GO: Read from standard inputA requirement that hits every language is to read from the standard input.
Learn·Oct 13, 2025Mocking static field with mockito?: It is time to reflectI had felt that I had reasonable understanding of Mockito.
Learn·Oct 13, 2025On idiomsLanguage has structure. The most direct manifestation of structure in your day to day coding are the braces that you need to close.
Learn·Sep 17, 2025Data structures: reverse linked listTo reverse a linked list, the process of pointer changes needs to be closely looked at. This would establish an order in which these…
Learn·Sep 17, 2025Data structures: First non-repeating character in a stringGiven a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1.
Learn·Sep 17, 2025Data Structures: Longest substring without duplicate charactersGiven a string s, find the length of the longest substring without duplicate characters.
Learn·Sep 17, 2025Data structures: find pivot indexGiven an array of integers nums, calculate the pivot index of this array.