"I have been with Cisco, I am trying to move into a technical project manager role so that I will not loose the touch of latest technologies and also that aligns my passion."
Praveena P. - "I have been with Cisco, I am trying to move into a technical project manager role so that I will not loose the touch of latest technologies and also that aligns my passion."See full answer
"function isPalindrome(s, start, end) {
while (s[start] === s[end] && end >= start) {
start++;
end--;
}
return end <= start;
}
function longestPalindromicSubstring(s) {
let longestPalindrome = '';
for (let i=0; i < s.length; i++) {
let j = s.length-1;
while (s[i] !== s[j] && i <= j) {
j--;
}
if (s[i] === s[j]) {
if (isPalindrome(s, i, j)) {
const validPalindrome = s.substring(i, j+1"
Tiago R. - "function isPalindrome(s, start, end) {
while (s[start] === s[end] && end >= start) {
start++;
end--;
}
return end <= start;
}
function longestPalindromicSubstring(s) {
let longestPalindrome = '';
for (let i=0; i < s.length; i++) {
let j = s.length-1;
while (s[i] !== s[j] && i <= j) {
j--;
}
if (s[i] === s[j]) {
if (isPalindrome(s, i, j)) {
const validPalindrome = s.substring(i, j+1"See full answer
"Make current as root.
2 while current is not null,
if p and q are less than current,
go left.
If p and q are greater than current,
go right.
else return current.
return null"
Vaibhav D. - "Make current as root.
2 while current is not null,
if p and q are less than current,
go left.
If p and q are greater than current,
go right.
else return current.
return null"See full answer
"I'd translated this decimal number into binary form and if it looks like 1000 or 10 or 1 - one leading 1 and others are zeros - than return 1 else return 0
"
Анвар А. - "I'd translated this decimal number into binary form and if it looks like 1000 or 10 or 1 - one leading 1 and others are zeros - than return 1 else return 0
"See full answer
"int a_array[10] = {3,6,4,7,2,1,9};
int index = 0;
int index2 = 0;
for ( index = 0; index < sizeof(a_array); index++ )
{
int tmpindex = index + 1;
if ( tmpindex <= sizeof(a_array) )
{
for ( index2 = tmpindex; index2 < sizeof(a_array); index2++ )
{
if ( aarray[index] <= aarray[index2] )
{
print( "%d is the NGE of %d" array[index2], array[index]);
break;
"
Mark S. - "int a_array[10] = {3,6,4,7,2,1,9};
int index = 0;
int index2 = 0;
for ( index = 0; index < sizeof(a_array); index++ )
{
int tmpindex = index + 1;
if ( tmpindex <= sizeof(a_array) )
{
for ( index2 = tmpindex; index2 < sizeof(a_array); index2++ )
{
if ( aarray[index] <= aarray[index2] )
{
print( "%d is the NGE of %d" array[index2], array[index]);
break;
"See full answer
"
The productofarrays() function works by first creating an empty array to store the product of the two integers. Then, it iterates through the first array and multiplies each element by each element in the second array. The product of each element is then appended to the product array. Finally, the product array is returned
def productofarrays(array1, array2):
"""
Calculates the product of two integers represented by two arrays.
Args:
array1: The first array.
array2: The se"
Praful B. - "
The productofarrays() function works by first creating an empty array to store the product of the two integers. Then, it iterates through the first array and multiplies each element by each element in the second array. The product of each element is then appended to the product array. Finally, the product array is returned
def productofarrays(array1, array2):
"""
Calculates the product of two integers represented by two arrays.
Args:
array1: The first array.
array2: The se"See full answer