In this paper we apply an efficient approaches based on Bernstein polynomials to solve one-dimensional partial differential equations
(PDEs) subject to the given nonlocal conditions. The main idea is based
on collocation and transforming the considered PDEs into their associated
algebraic equations. Numerical results are presented through the illustrative graphs which demonstrate good accuracy