# Strobogrammatic Number II

247. Strobogrammatic Number II

A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).

Find all strobogrammatic numbers that are of length = n.

For example,
Given n = 2, return ["11","69","88","96"].

n = 0: none
n = 1: 0, 1, 8
n = 2: 11, 69, 88, 96
n = 3: 101, 609, 808, 906, 111, 619, 818, 916, 181, 689, 888, 986
n = 4: 1001, 6009, 8008, 9006, 1111, 6119, 8118, 9116, 1691, 6699, 8698, 9696, 1881, 6889, 8888, 9886, 1961, 6969, 8968, 9966

``````public class Solution {
public List<String> findStrobogrammatic(int n) {
return helper(n, n);
}

List<String> helper(int n, int m) {
if (n == 0) {
return new ArrayList<String>(Arrays.asList(""));
}
if (n == 1) {
return new ArrayList<String>(Arrays.asList("0", "1", "8"));
}

List<String> list = helper(n - 2, m);

List<String> result = new ArrayList<String>();

for (String str : list) {
if (n != m) {
}

}

return result;
}
}
``````
``````public class Solution {
public List<String> findStrobogrammatic(int n) {
List<String> one = Arrays.asList("0", "1", "8");
List<String> two = Arrays.asList("");

List<String> result = two;

if (n % 2 == 1) {
result = one;
}

for (int i = (n % 2) + 2; i <= n; i += 2) {
List<String> newList = new ArrayList<>();

for (String str : result) {
if (i != n) {
}