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

Автор mohmmdali, история, 4 месяца назад, По-английски

Hey!

I know this might be a trivial google search but I have looked for a while and got "Backspace in vim is done with X (and delete with x)".

when ever i am trying to use backspace it inserts a '^H' ans using x inserts a char x in it.

This is my .vimrc file.

I have configured the snippets using ultisnips which also isnt working the directory for ultisnips is:

root/
    - .vim
      - ultisnips
        - cpp.snippets

The ultisnip is installed succesfully as :plugStatus says its installed and status is : ok.

Any help or corrections will be appreciated. thank you!

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

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

Автор mohmmdali, история, 7 месяцев назад, По-английски

Hey! I hope you all are doing good.

I have been trying to figure out the solution for the problem. I am maintaining the state as [x][y][prevDir] as, the prevDir i took to reach [x][y], and pushing the new co-ordinate with same steps if newDir is same as prevDir else steps + 1, but its kinda confusing how to fix the direction for any cell as for example:

If the grid is:

S . .

X X .

F . .

We can reach grid[2][0] by [0][2] and [0][1] and now its kinda confusing what direction I should give [1][2] to move forward, as I know it should have [1][2][D] as it will give me optimal solution but [0][1] pushes [1][2] first so it sets [1][2][RD]. I hope I was able to explain my confusion.

Code

Thank you!!

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

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

Автор mohmmdali, история, 10 месяцев назад, По-английски

Hey! I just wanna know is there any atcoder's delta predictor as an extension like carrot for Codeforces (or any alternative).

Thank you!!

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

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