Question: Given an array of words and line number n.  

How can I get the least width, less than n lines.  

For example,  

**words:** ["AA", "AA", "A", "AAAAAA", "AA"]  

**lines:** 2  

we can get  

[  

 "AA AA A",  

 "AAAAAA AA", //this line is widthest，so we regard this as width  

]  

So the answer is 8.  

If we change lines to 3, so that we can get  

[  

 "AA AA A",  

 "AAAAAA", //this line is widthest，so we regard this as width  

 “AA”  

]  

So the answer is 6.  

**Notice**：  

**words:** ["AA", "A", "AA", "A", "AA"]  

**lines:** 5  

we can only get 3 lines result，and the answer is 3  

[  

 "AA A",  
"AA A",  
"AA"  

]  

Because if we Reduce the width,the result will become  

[  

 "AA",  

 "A",  

 "AA",   
"A" ,  
"AA"  

]  

**I want to know if this problem is NP-Complete and if there is any similar problem.**

Answer: 
I faced the same issue.So I reported the error to Facebook and they told to me to upgrade the Facebook Audience Network SDK to 

> 
> com.facebook.android:audience-network-sdk:4.99.1
> 
> 
> 

Now its working fine without any exception.
try

```
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    loadInterstitialAd();
 }

```

override another method `onViewCreated()`