Category: code library
In C/C++ header file stdlib.h there is a function strtol which will convert given string to a long int at the specified base. The function prototype takes three parameters. The first parameter …
In VBScript, the values are dynamic typed meaning that the values can be changed at runtime for any variable. For example, a numerical variable can be converted on the …
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 …
C/C++ is powerful because of pointers. The pointers are used to represent the address of some memory locations. Pointers can be involved in arithmetic operations, for example, int *p; …
April 4, 2014
algorithms, beginner, c / c++, code, code library, implementation, interview questions, leetcode online judge, math, programming languages, string
The sequence is interesting. It starts from ‘1’. The next number always counts the previous number in digits one by one. For example, the second number in the series …