Lets assume L is regular.
Then there must exist som value p which is the pumping length for L.
lets take a string w ∊ L and |w|>=p
assume the split of w=xyz
Now 3 conditions of pumping lemma needs to be satisfied
- |xy|<=p
- |y|>0
- xy^iz ∊ L for i>=0
now take w= 0^p1^p-1 [this string definitely belong to L ]
Now our xy should be limited to first p symbols
lets assume a partition |x|=p-1 and |y|=1
take i=0 [just remove y]
so, xy^0z = 0^p-1 1^p-1 [this str does not belong to L since number of 0 and number of 1 is same ]
therefore it contradicts our initial assumption of L being regular.
Hence L is not regular.