You must be logged in to add problems to this category

two pointers problems
Problem Name Online Judge Contest Difficulty Level
1 Number of Ways Categories Codeforces Codeforces Round #266 (Div. 2) 1
2 Roommate Agreement Categories SPOJ 1
3 Books Categories Codeforces Codeforces Round #171 (Div. 2) 1
4 BerSU Ball Categories Codeforces Codeforces Round #277.5 (Div. 2) 1
5 Queries about less or equal elements Categories Codeforces Educational Codeforces Round 2 1
6 Complete the Word Categories Codeforces Codeforces Round #372 (Div. 2) 1
7 Kefa and Company Categories Codeforces Codeforces Round #321 (Div. 2) 1
8 Sereja and Dima Categories Codeforces Codeforces Round #223 (Div. 2) 1
9 Approximating a Constant Range Categories Codeforces Codeforces Round #333 (Div. 2) 2
10 Escape from Stones Categories Codeforces Codeforces Round #162 (Div. 1) & Codeforces Round #162 (Div. 2) 2
11 Kirill And The Game Categories Codeforces Codeforces Round #430 (Div. 2) 2
12 Points on Line Categories Codeforces Codeforces Round #153 (Div. 1) & Codeforces Round #153 (Div. 2) 2
13 Strings of Power Categories Codeforces Codeforces Round #188 (Div. 2) 2
14 Wrath Categories Codeforces Codeforces Round #446 (Div. 2) 2
15 Another Problem on Strings Categories Codeforces Codeforces Round #112 (Div. 2) 2
16 Audition Categories SPOJ 2
17 Counting Kangaroos is Fun Categories Codeforces Codeforces Round #219 (Div. 1) & Codeforces Round #219 (Div. 2) 2
18 Modulo Sum Categories Codeforces Codeforces Round #319 (Div. 2) 2
19 Alice, Bob and Chocolate Categories Codeforces Codeforces Beta Round #6 (Div. 2 Only) 2
20 Vasya and String Categories Codeforces Codeforces Round #354 (Div. 2) 2
21 George and Round Categories Codeforces Codeforces Round #227 (Div. 2) 2
22 DZY Loves Sequences Categories Codeforces Codeforces Round #255 (Div. 1) & Codeforces Round #255 (Div. 2) 2
23 Checkposts Categories Codeforces Codeforces Round #244 (Div. 2) 2
24 A and B and Interesting Substrings Categories Codeforces Codeforces Round #294 (Div. 2) 3
25 Stripe Categories Codeforces Codeforces Beta Round #18 (Div. 2 Only) 3
26 Voting Categories Codeforces Codeforces Round #388 (Div. 2) 3
27 Maximum Value Categories Codeforces Codeforces Round #276 (Div. 1) & Codeforces Round #276 (Div. 2) 3
28 Physics Practical Categories Codeforces Codeforces Round #154 (Div. 2) 3
29 Primes on Interval Categories Codeforces Codeforces Round #147 (Div. 2) 3
30 Eugeny and Play List Categories Codeforces Codeforces Round #182 (Div. 2) 3
31 Mr. Kitayuta, the Treasure Hunter Categories Codeforces Codeforces Round #286 (Div. 2) & Codeforces Round #286 (Div. 1) 3
32 An impassioned circulation of affection Categories Codeforces Codeforces Round #418 (Div. 2) 3
33 To Add or Not to Add Categories Codeforces Codeforces Round #143 (Div. 2) 3
34 Guess a number! Categories Codeforces Codeforces Round #241 (Div. 2) 3
35 Alyona and Spreadsheet Categories Codeforces Codeforces Round #401 (Div. 2) 3
36 Ladder Categories Codeforces Codeforces Round #171 (Div. 2) 3
37 Powerful array Categories Codeforces Yandex.Algorithm 2011 Round 2 3
38 Array Categories Codeforces Codeforces Round #138 (Div. 2) 3
39 Dress'em in Vests! Categories Codeforces VK Cup 2012 Round 1 3
40 Hard Process Categories Codeforces Educational Codeforces Round 11 3
41 Vasya and Basketball Categories Codeforces Codeforces Round #281 (Div. 2) 3
42 Processing Queries Categories Codeforces CROC 2016 - Qualification 4
43 Shifts Categories Codeforces Codeforces Round #142 (Div. 1) & Codeforces Round #142 (Div. 2) 4
44 Where Are My Flakes? Categories Codeforces Codeforces Beta Round #56 4
45 Balls Game Categories Codeforces Codeforces Round #245 (Div. 2) 4
46 Almost Arithmetical Progression Categories Codeforces Codeforces Round #156 (Div. 2) & Codeforces Round #156 (Div. 1) 4
47 Pointers Categories SGU 4
48 Prefixes and Suffixes Categories Codeforces Codeforces Round #246 (Div. 2) 4
49 Multitasking Categories Codeforces Codeforces Round #225 (Div. 2) 4
50 Devu and his Brother Categories Codeforces Codeforces Round #251 (Div. 2) 4
51 Image Preview Categories Codeforces Codeforces Round #345 (Div. 1) & Codeforces Round #345 (Div. 2) 4
52 Pair of Numbers Categories Codeforces Codeforces Round #209 (Div. 2) 4
53 Longest k-Good Segment Categories Codeforces Educational Codeforces Round 5 4
54 XK Segments Categories Codeforces Codeforces Round #448 (Div. 2) 4
55 Nearest Fraction Categories Codeforces Codeforces Round #172 (Div. 2) 5
56 Two Paths Categories Codeforces Codeforces Beta Round #14 (Div. 2) 5
57 Enduring Exodus Categories Codeforces CROC 2016 - Elimination Round 5
58 Read Time Categories Codeforces Codeforces Round #200 (Div. 1) & Codeforces Round #200 (Div. 2) 5
59 Correcting Mistakes Categories Codeforces VK Cup 2015 - Round 2 (unofficial online mirror, Div. 1 only) 5
60 Strip Categories Codeforces Codeforces Round #278 (Div. 1) & Codeforces Round #278 (Div. 2) 5
61 The Bakery Categories Codeforces Codeforces Round #426 (Div. 1) & Codeforces Round #426 (Div. 2) 5
62 Olympiad Categories Codeforces Codeforces Round #137 (Div. 2) 5
63 R2D2 and Droid Army Categories Codeforces Codeforces Round #291 (Div. 2) 5
64 Foe Pairs Categories Codeforces Educational Codeforces Round 10 5
65 Skills Categories Codeforces Codeforces Round #339 (Div. 1) & Codeforces Round #339 (Div. 2) 5
66 Cartons of milk Categories Codeforces Codeforces Round #398 (Div. 2) 5
67 Maximum Xor Secondary Categories Codeforces Codeforces Round #172 (Div. 1) & Codeforces Round #172 (Div. 2) 5
68 Jury Meeting Categories Codeforces Codeforces Round #433 (Div. 1, based on Olympiad of Metropolises) & Codeforces Round #433 (Div. 2, based on Olympiad of Metropolises) 5
69 Exposition Categories Codeforces Codeforces Beta Round #6 (Div. 2 Only) 5
70 Segment Tree Categories SPOJ 6
71 Gadgets for dollars and pounds Categories Codeforces Educational Codeforces Round 3 6
72 Towers Categories Codeforces Codeforces Round #142 (Div. 1) 6
73 Hamsters and Tigers Categories Codeforces School Personal Contest #2 (Winter Computer School 2010/11) - Codeforces Beta Round #43 (ACM-ICPC Rules) 6
74 Non-Secret Cypher Categories Codeforces Codeforces Round #120 (Div. 2) 6
75 Rooter's Song Categories Codeforces Codeforces Round #431 (Div. 1) & Codeforces Round #431 (Div. 2) 6
76 Beaver Categories Codeforces Codeforces Beta Round #71 6
77 Nanami's Digital Board Categories Codeforces Codeforces Round #248 (Div. 2) & Codeforces Round #248 (Div. 1) 7
78 Genetic Engineering Categories Codeforces Rockethon 2014 7
79 Dima and Trap Graph Categories Codeforces Codeforces Round #214 (Div. 2) 7
80 Name That Tune Categories Codeforces Codeforces Round #284 (Div. 1) & Codeforces Round #284 (Div. 2) 7
81 Spider's Web Categories Codeforces Codeforces Round #133 (Div. 2) 7
82 Social Network Categories Codeforces VK Cup 2015 - Round 1 7
83 Bamboo Partition Categories Codeforces Codeforces Round #424 (Div. 1, rated, based on VK Cup Finals) & Codeforces Round #424 (Div. 2, rated, based on VK Cup Finals) 7
84 Subway Innovation Categories Codeforces Codeforces Round #218 (Div. 2) 7
85 Professor GukiZ and Two Arrays Categories Codeforces Educational Codeforces Round 6 7
86 Little Elephant and Inversions Categories Codeforces Codeforces Round #136 (Div. 1) 7
87 Vika and Segments Categories Codeforces Codeforces Round #337 (Div. 2) 7
88 Edo and Magnets Categories Codeforces Codeforces Round #330 (Div. 1) & Codeforces Round #330 (Div. 2) 7
89 Building Bridge Categories Codeforces CROC-MBTU 2012, Final Round (Online version, Div. 2) 7
90 Table with Letters - 2 Categories Codeforces Codeforces Round #154 (Div. 2) 7
91 Bug in Code Categories Codeforces Coder-Strike 2014 - Finals (online edition, Div. 2) & Coder-Strike 2014 - Finals (online edition, Div. 1) & Coder-Strike 2014 - Finals (online edition, Div. 2) & Coder-Strike 2014 - Finals (online edition, Div. 1) 7
92 Cubes Categories Codeforces Codeforces Round #116 (Div. 2, ACM-ICPC Rules) 7
93 Ski Base Categories Codeforces Codeforces Beta Round #75 (Div. 1 Only) & Codeforces Beta Round #75 (Div. 2 Only) 7
94 Sereja and Straight Lines Categories Codeforces Codeforces Round #187 (Div. 1) 8
95 Ancient Berland Hieroglyphs Categories Codeforces VK Cup 2012 Round 3 8
96 Zublicanes and Mumocrates Categories Codeforces Codeforces Round #322 (Div. 2) 8
97 Double Knapsack Categories Codeforces Wunder Fund Round 2016 (Div. 1 + Div. 2 combined) 8
98 Volcanoes Categories Codeforces Codeforces Round #225 (Div. 1) & Codeforces Round #225 (Div. 2) 8
99 Mashmokh and Water Tanks Categories Codeforces Codeforces Round #240 (Div. 1) 8
100 Lucky Tickets Categories Codeforces Codeforces Beta Round #64 8
101 Present to Mom Categories Codeforces Codeforces Beta Round #95 (Div. 2) 8
102 Morning run Categories Codeforces Croc Champ 2013 - Finals (online version, Div. 1) 8
103 Alyona and Triangles Categories Codeforces Codeforces Round #358 (Div. 2) 8
104 Diverse Substrings Categories Codeforces Testing Round #9 8
105 DZY Loves Strings Categories Codeforces Codeforces Round #254 (Div. 1) 8
106 Choosing Subtree is Fun Categories Codeforces Codeforces Round #219 (Div. 1) 8
107 Startup Funding Categories Codeforces Manthan, Codefest 16 8
108 Drazil and Morning Exercise Categories Codeforces Codeforces Round #292 (Div. 1) 8
109 Very simple problem Categories Codeforces Codeforces Beta Round #51 8
110 Mad Joe Categories Codeforces CROC-MBTU 2012, Final Round (Online version, Div. 2) 8
111 Little Elephant and Strings Categories Codeforces Codeforces Round #129 (Div. 1) 8
112 Transportation Categories Codeforces Codeforces Round #128 (Div. 2) 9
113 Lucky Segments Categories Codeforces Codeforces Beta Round #91 (Div. 1 Only) 9
114 Colorful Stones Categories Codeforces Codeforces Round #162 (Div. 1) 9
115 Ksusha and Square Categories Codeforces Croc Champ 2013 - Round 2 9
116 Race Categories Codeforces Codeforces Beta Round #42 (Div. 2) 9
117 Shoe Store Categories Codeforces Codeforces Round #113 (Div. 2) 9
118 Mice Categories Codeforces All-Ukrainian School Olympiad in Informatics 9
119 Archer's Shot Categories Codeforces Codeforces Beta Round #70 (Div. 2) 9
120 Maxim and Calculator Categories Codeforces Codeforces Round #160 (Div. 1) 9
121 Context Advertising Categories Codeforces Croc Champ 2013 - Finals (online version, Div. 1) 9
122 BCPC Categories Codeforces Codeforces Round #328 (Div. 2) 10
123 New Year and Cake Categories Codeforces Good Bye 2015 10
124 Galaxy Union Categories Codeforces School Personal Contest #3 (Winter Computer School 2010/11) - Codeforces Beta Round #45 (ACM-ICPC Rules) 10
125 Orchestra Categories Codeforces 8VC Venture Cup 2016 - Final Round 10
126 Hellish Constraints Categories Codeforces Codeforces Beta Round #99 (Div. 1) 10
127 Cubes Categories Codeforces Codeforces Round #150 (Div. 1) 10
128 Empty Rectangles Categories Codeforces Codeforces Round #213 (Div. 1) 10