_humblefool_'s blog

By _humblefool_, history, 2 years ago, In English

Well played Unacademy by making Codechef Pro. Who is waiting for Codeforces Pro after Codechef Pro? Just Kidding Guys.

Full text and comments »

  • Vote: I like it
  • -24
  • Vote: I do not like it

By _humblefool_, history, 2 years ago, In English

Problem link I did not find any better solution in the discuss section of leetcode that's why posting here.

Full text and comments »

  • Vote: I like it
  • -21
  • Vote: I do not like it

By _humblefool_, history, 3 years ago, In English
  • Vote: I like it
  • -17
  • Vote: I do not like it

By _humblefool_, history, 3 years ago, In English

Given an array A of N elements, you can pick at most one element of the array and increment or decrement it by any value. The task is to maximize the AND of the resulting array.

Note: AND of the array is defined as the bitwise AND(&) of all the array elements.

Constraints: 2 ≤ N ≤ 2 * 10^5 0 ≤ A[i] ≤ 2 * 10^9

Full text and comments »

  • Vote: I like it
  • -22
  • Vote: I do not like it