|  | 
|  | 
| вернуться в форум | How to reach high efficiency Послано kumiya  2 ноя 2020 17:53My Python program solved this problem using 0.7+ seconds and 64000+KB memory. However, I saw some people solved it with Python using just about 0.1 secs and 500KB mem. Can anyone give me a hint about how to reach that efficiency?Re: How to reach high efficiency Try to use bitmasks instead of using recursion;)Re: How to reach high efficiency Послано kumiya  3 ноя 2020 20:09thx!!Re: How to reach high efficiency Послано Ivan  7 янв 2022 22:29You can solve this task with (n/2) * 2^(n/2) complexity using meet in the middle | 
 | 
|