- Change Software and Update settings.
- Make password visible.
sudo visudo # Defaults pwfeedback
- Update and Upgrade and Clean.
sudo apt update && sudo apt upgrade
// problem 1 | |
function isPalindrome(x: number): boolean { | |
const xStr = x.toString(); | |
for (let index = 0; index < xStr.length / 2; index++) { | |
const leftIndex = index; | |
const rightIndex = xStr.length - index - 1; | |
if (leftIndex === rightIndex) return true; | |
if (xStr[leftIndex] !== xStr[rightIndex]) return false; |
// Copyright 2022 Amit Biswas. All rights reserved. | |
// Use of this source code is governed by the | |
// GNU GENERAL PUBLIC LICENSE v3.0 | |
// Program to convert output from `git diff` for a folder to a | |
// JSON file based on the line change. If the diff for a file is | |
// nothing other than line number changes, it excludes the file | |
// from JSON listing. | |
// For example, if the diff for file A is like below, where the |