lamacode
  • Home
  • About
Sign in Subscribe

Ratna Lama

California USA
https://ratnalama.com/
Featured

FizzBuzz

A fizzbuzz is a classic programming interview question to test basic understanding of logic flow.
29 May 2023 2 min read
code

Palindrome

Determine whether the input string is a palindrome or not const isPalindrome = (str) => { if ( str.length === 0 || str === undefined || str === null || typeof str !== 'string' ) return false; let newCleanedString = stringClean(str); let leftPointer = 0; let rightPointer = str.length - 1; while (leftPointer < rightPointer) { if (newCleanedString[leftPointer] === newCleanedString[
26 May 2023 1 min read
Page 1 of 1
lamacode © 2025
  • Sign up
Powered by Ghost