ICode9

精准搜索请尝试: 精确搜索
  • Monotonic queue2019-06-09 11:50:33

    Sliding Window Maximum Shortest Unsorted Continuous Subarray Next Greater Element I 503.Next Greater Element II Largest Rectangle in Histogram Best Time to Buy and Sell Stock II Shortest Subarray with Sum at Least K

  • 算法 - 图的实例 - 最短路径 (Shortest Path)2019-05-26 15:47:49

    算法 - 图的实例 - 最短路径 (Shortest Path) 返回分类:全部文章 >> 基础知识 返回上级:编程基础 - 图 (Graph) 本文将介绍最短路径的基础知识,并用C++实现迪杰斯特拉算法(Dijkstra)和弗洛伊德算法(Floyed)。 在查看本文之前,需要一些数据结构和程序语言的基础。 尤其是“矩阵

  • 4kyu Path Finder #2: shortest path2019-03-18 08:48:19

    4kyu Path Finder #2: shortest path 题目背景: Task You are at position [0, 0] in maze NxN and you can only move in one of the four cardinal directions (i.e. North, East, South, West). Return the minimal number of steps to exit position [N-1, N-1] if it is p

  • 1046 Shortest Distance2019-02-28 15:40:20

    题目大意是给你一个环上相邻两点之间的距离,问你任意两点间的最短距离。 用前缀和,判断顺着和逆着走哪边小,注意查询点的位置不一定是后面比前面大。水题~ #include <iostream>#include <string.h>using namespace std;#define maxn 100005int a[maxn],b[maxn];int main(){ memset

  • River Hopscotch2019-02-08 12:37:44

    题目链接:http://poj.org/problem?id=3258 River Hopscotch Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 22092   Accepted: 9138 Description Every year the cows hold an event featuring a peculiar version of hopscotch that involves ca

  • CF3A Shortest path of the king2019-02-06 23:40:49

    The king is left alone on the chessboard. In spite of this loneliness, he doesn't lose heart, because he has business of national importance. For example, he has to pay an official visit to square t. As the king is not in habit of wasting his time, h

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

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

ICode9版权所有