ICode9

精准搜索请尝试: 精确搜索
  • [BUUCTF-pwn] butterfly_plaid_20162022-01-07 22:32:52

    看了半天没看明白,第一次看这东西,后来看了下exp原来如果简单 puts("THOU ART GOD, WHITHER CASTEST THY COSMIC RAY?"); v3 = 1; if ( fgets(s, 50, stdin) ) { v4 = strtol(s, 0LL, 0); v5 = v4; v6 = v4 >> 3; v7 = (void *)((v4 >> 3) & 0xFFFFFF

  • leetcode 1318 Minimum Flips to Make a OR b Equal to c2020-01-13 15:54:41

    Given 3 positives numbers a, b and c. Return the minimum flips required in some bits of a and b to make ( a OR b == c ). (bitwise OR operation).Flip operation consists of change any single bit 1 to 0 or change the bit 0 to 1 in their binary

  • [leetcode] Minimum Number of K Consecutive Bit Flips2019-03-03 12:37:54

    我永远都学不会贪心算法罢了(╯‵□′)╯︵┻━┻   class Solution {public: int minKBitFlips(vector<int>& A, int K) { int count=0, A_length=A.size(); queue<int> flip_records; bool has_flipped, need_flip; for (int i=0;i<A_length;i

  • [Swift Weekly Contest 124]LeetCode995. K 连续位的最小翻转次数 | Minimum Number of K Consecutive Bit Flips2019-02-17 12:47:29

    In an array A containing only 0s and 1s, a K-bit flip consists of choosing a (contiguous) subarray of length K and simultaneously changing every 0 in the subarray to 1, and every 1 in the subarray to 0. Return the minimum number of K-bit flips required

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有