Skip to content

Latest commit

 

History

History

Super 2048

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Solution

CPP
JAVA
PYTHON

Approach

Hint 1
* Declare 0 error and keep inserting pairs from given directions * If pairs are same then insert their sum else insert 1st number and make another pair from second number * Ignore 0 in making pairs * Insert from opposite of given direction, else will end up adding newly formed blocks