You must be logged in to add problems to this category

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