-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBinaryPath.java
More file actions
32 lines (32 loc) · 1.04 KB
/
BinaryPath.java
File metadata and controls
32 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//import java.util.Scanner;
//import java.util.*;
//public class BinaryPath {
// public static void main(String[] args) {
// Scanner sc=new Scanner(System.in);
// int t=sc.nextInt();
// for (int i = 0; i < t; i++) {
// int n=sc.nextInt();
// int[][] mat=new int[2][n];
// int[][] dp=new int[2][n];
// StringBuilder res=new StringBuilder();
// String s1=sc.next();
// String s2= sc.next();
// for(int j=0;j<n;j++){
// mat[0][i]=s1.charAt(i)-'0';
// mat[1][i]=s2.charAt(i)-'0';
// }
// System.out.println(helper(mat,n,1,dp,res));
// }
//
// }
// static StringBuilder helper(int[][] mat,int i,int j,int[][] dp,StringBuilder res) {
// if(i==0 && j==0) return 1;
// res.append(mat[i][j]);
// StringBuilder up =0;
// if(i>0) up=helper(mat, i - 1, j, dp,res);
// StringBuilder side = 0;
// if(j>0) side=helper(mat, i, j - 1, dp,res);
// return
// }
//
//}