Блог пользователя annmittal8497

Автор annmittal8497, история, 5 лет назад, По-английски

Hi Codeforces team. recently I have started coding on codeforces and I had fallen in love with its contest. As a token of respect I have tried to design a error 404 page for codeforces. Any critique or concern is appreciated :) This page is also a part of error page of my portfolio but I haven't used it. You can view the full project at — https://www.behance.net/gallery/70266607/MY-PORTFOLIO

Полный текст и комментарии »

  • Проголосовать: нравится
  • +15
  • Проголосовать: не нравится

Автор annmittal8497, история, 5 лет назад, По-английски

Recently I got stuck on a question. Any help will be appreciated. Question is -

You are given an old touch smartphone numbers having dial pad and calculator app. The goal is to type a number on dialpad. Calculator have 1-9 and +, -, * , /, = as operations. But as phone is old, some of the numbers and some operations can’t be touched. But you can always make a number using other numbers and operations. There could be multiple ways of making a number. You have to find minimum operation for making a number. For ex: lets say 1,4,6,7,8,9 works and +,-,* works. 2,3,5 and / doesn’t work. If you have to type 18-> 2 operations. (Each touch is considered an operation). If you have to type 5 -> ‘1+4=’ that requires 4 operations. There could be other ways to make ‘5’. The goal is to find minimum operations.

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится