This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package practice.CodingQues.UnorderedQuestions; | |
import java.util.Scanner; | |
public class GandhiNumber { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
long num = scanner.nextInt(); | |
long temp = num; | |
long sum = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//c= for value; | |
//b for arrow; | |
//Longest Common SubSequence | |
for(i){ | |
for(j){ | |
if(xi==yj){ | |
c[i,j]=c[i-1,j-1]+1; | |
b=// | |
} | |
else if(c[i-1,j]>=c[i,j-1]){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadItems(day) { | |
setTimeout(() => { | |
for (let i = -15; i < 85; i++) { | |
const time = day.timestamp + i * 24 * 60 * 60 * 1000; | |
const strTime = this.timeToString(time); | |
// console.log('time', time); | |
// console.log('day', day); | |
// console.log('strTime', strTime); | |
if (!this.state.items[strTime]) { | |
this.state.items[strTime] = []; |