├── .gitignore ├── CPPNotes.md ├── LICENSE ├── README.md ├── SQL ├── 175. Combine Two Tables.cpp └── 175. Combine Two Tables.txt ├── algorithms ├── graph │ ├── bellmanFord_algorithm.cpp │ ├── dijkstras_algorithm.cpp │ ├── floyd_warshall_algorithm.cpp │ ├── kosarajus_algorithm.cpp │ ├── kruskals_mst_algorithm.cpp │ ├── prims_mst_algorithm.cpp │ └── topological_sorting_dfs.cpp ├── searching │ ├── binary_search.cpp │ ├── exponential_search.cpp │ ├── interpolation_search.cpp │ ├── jump_search.cpp │ └── linear_search.cpp └── sorting │ ├── merge_sort.cpp │ ├── quick_select.cpp │ └── quick_sort.cpp ├── array ├── array_pair_sum.cpp ├── array_product_except_ith_element.cpp ├── binary_search.cpp ├── connect_ropes_with_min_cost.cpp ├── count_of_element_binary_search.cpp ├── distinct_element_in_window_of_size_k.cpp ├── first_and_last_occurence_of_element_binary_search.cpp ├── floor_of_num_in_sorted_array_binary_search.cpp ├── generate_all_subarrays.cpp ├── inversion_count_merge_sort.cpp ├── juggling_rotation.cpp ├── k_closest_num_max_heap.cpp ├── k_closest_points_to_origin.cpp ├── k_largest_num_min_heap.cpp ├── kadanes_algorithm.cpp ├── kth_smallest_num_max_heap.cpp ├── largest_subarray_with_sum_0.cpp ├── longest_non_decreasing_subsequence.cpp ├── max_hamming_distance.cpp ├── merge_intervals.cpp ├── merge_two_sorted_array_O(1)_space.cpp ├── missing_and_repeating_number.cpp ├── num_of_rotation_in_sorted_array_binary_search.cpp ├── quick_left_rotate.cpp ├── rotated_max_i_multiply_ai.cpp ├── rotated_pivot_point.cpp ├── rotated_search.cpp ├── set_matrix_ones_in_O(1).cpp ├── sort_k_sorted_array.cpp ├── sorted_rotated_min_search.cpp ├── sorted_rotated_sum_pair_search.cpp ├── sum_of_elements_between_k1_k2_th_smallest.cpp ├── three_sum_problem.cpp ├── top_k_frequent_nums_min_heap.cpp └── trapping_rain_water.cpp ├── backtracking ├── graph_coloring.cpp ├── knight_tour.cpp ├── n_queen_columnwise.cpp ├── n_queen_rowwise.cpp ├── palindromic_partioning.cpp ├── rat_in_a_maze.cpp └── sudoku.cpp ├── bit magic └── Max_Character_Distinct_Words.cpp ├── competitive programming ├── codechef │ ├── ADAMAT.cpp │ ├── CHEFWARS.cpp │ ├── CHFICRM.cpp │ ├── COPR16G.cpp │ ├── CRDGAME3.cpp │ ├── EOEO.cpp │ ├── EVENM.cpp │ ├── GCDQ.cpp │ ├── LINCHESS.cpp │ ├── PRB01.cpp │ ├── PRICECON.cpp │ ├── README.MD │ ├── TREE2.cpp │ ├── XYSTR.cpp │ ├── chefstlt.cpp │ ├── diffsum.cpp │ ├── flow014.cpp │ ├── ppsum.cpp │ └── twtclose.cpp ├── codeforces │ ├── 1055A - Metro.cpp │ ├── 1056A - Determine Line.cpp │ ├── 1075A - The King's Race.cpp │ ├── 10A - Power Consumption Calculation.cpp │ ├── 110A - Nearly Lucky Number.cpp │ ├── 1113A - Sasha and His Trip.cpp │ ├── 112A - Petya and Strings.cpp │ ├── 1141B - Maximal Continuous Rest.cpp │ ├── 1146A - Love A.cpp │ ├── 115A - Party.cpp │ ├── 1162A - Zoning Restrictions Again.cpp │ ├── 116A - Tram.cpp │ ├── 1180A - Alex and a Rhombus.cpp │ ├── 1182A - Filling Shapes.cpp │ ├── 1186A - Vus the Cossack and a Contest.cpp │ ├── 1220A - Cards.cpp │ ├── 1223A - CME.cpp │ ├── 122A - Lucky Division.cpp │ ├── 1238A - Prime Subtraction.cpp │ ├── 1250F - Data Center.cpp │ ├── 1260B - Make Product Equal One.cpp │ ├── 1272A - Three Friends.cpp │ ├── 1281A - Suffix Three.cpp │ ├── 1283B - Candies Division.cpp │ ├── 1284A - New Year and Naming.cpp │ ├── 1295A - Display The Number.cpp │ ├── 1296B - Food Buying.cpp │ ├── 12A - Super Agent.cpp │ ├── 131A - cAPS lOCK.cpp │ ├── 1323A - Even Subset Sum Problem.cpp │ ├── 1324A - Yet Another Tetris Problem.cpp │ ├── 1326B - Maximums.cpp │ ├── 1328A - Divisibility Problem.cpp │ ├── 1330A - Dreamoon and Ranking Collection.cpp │ ├── 1335A - Candies and Two Sisters.cpp │ ├── 1335B - Construct the String.cpp │ ├── 1337B - Kana and Dragon Quest game.cpp │ ├── 1339A - Filling Diamonds.cpp │ ├── 133A - HQ9+.cpp │ ├── 1341A - Nastya and Rice.cpp │ ├── 1343A - Candies.cpp │ ├── 1343B - Balanced Array.cpp │ ├── 1348A - Phoenix and Balance.cpp │ ├── 1350A - Orac and Factors.cpp │ ├── 1350C - Orac and LCM.cpp │ ├── 1352A - Sum of Round Numbers.cpp │ ├── 1353A - Most Unstable Array.cpp │ ├── 1353B - Two Arrays And Swaps.cpp │ ├── 1354A - Alarm Clock.cpp │ ├── 1359B - New Theatre Square.cpp │ ├── 1360A - Minimal Square.cpp │ ├── 1360B - Honest Coach.cpp │ ├── 1367A - Short Substrings.cpp │ ├── 1367B - Even Array.cpp │ ├── 136A - Presents.cpp │ ├── 1370A - Maximum GCD.cpp │ ├── 1371A - Magical Sticks.cpp │ ├── 1373B - 01 Game.cpp │ ├── 1374A - Required Remainder.cpp │ ├── 1374B - Multiply by 2, divide by 6.cpp │ ├── 1380A - Three Indices.cpp │ ├── 1385B - Restore the Permutation by Merger.cpp │ ├── 1399B - Gifts Fixing.cpp │ ├── 1406A - Subset Mex.cpp │ ├── 1409A - Yet Another Two Integers Problem.cpp │ ├── 1419A - Digit Game.cpp │ ├── 141A - Amusing Joke.cpp │ ├── 1420A - Cubes Sorting.cpp │ ├── 1426B - Symmetric Matrix.cpp │ ├── 1430A - Number of Apartments.cpp │ ├── 1433C - Dominant Piranha.cpp │ ├── 1436B - Prime Square.cpp │ ├── 1440A -Buy the String.cpp │ ├── 1440B - Sum of Medians.cpp │ ├── 144A - Arrival of the General.cpp │ ├── 1450A - Avoid Trygub.cpp │ ├── 1451B - Non-Substring Subsequence.cpp │ ├── 1452A - Robot Program.cpp │ ├── 1452C - Two Brackets.cpp │ ├── 1461A - String Generation.cpp │ ├── 1462B - Last Year's Substring.cpp │ ├── 1462C - Unique Number.cpp │ ├── 1465A - In-game Chat.cpp │ ├── 1465B - Fair Numbers.cpp │ ├── 1466A - Bovine Dilemma.cpp │ ├── 1466B - Last minute enhancements.cpp │ ├── 1467A - Wizard of Orz.cpp │ ├── 1467B - Hills And Valleys.cpp │ ├── 1469B - Red and Blue.cpp │ ├── 1472B - Fair Division.cpp │ ├── 1473A - Replacing Elements.cpp │ ├── 1473B - String LCM.cpp │ ├── 1474A - Puzzle From the Future.cpp │ ├── 1475A - Odd Divisor.cpp │ ├── 1475B - New Year's Number.cpp │ ├── 1486A - Shifting Stacks.cpp │ ├── 148A - Insomnia cure.cpp │ ├── 1490A - Dense Array.cpp │ ├── 1490B - Balanced Remainders.cpp │ ├── 1494A - ABC String.cpp │ ├── 1499B - Binary Removals.cpp │ ├── 149A - Business trip.cpp │ ├── 14A - Letter.cpp │ ├── 1501B - Napoleon Cake.cpp │ ├── 1515A - Phoenix and Gold.cpp │ ├── 1515B - Phoenix and Puzzle.cpp │ ├── 1519A - Red and Blue Beans.cpp │ ├── 1519B - The Cake Is a Lie.cpp │ ├── 151A - Soft Drinking.cpp │ ├── 1520A - Do Not Be Distracted.cpp │ ├── 1520B - Ordinary Numbers.cpp │ ├── 1520C - Not Adjacent Matrix.cpp │ ├── 1520D - Same Differences.cpp │ ├── 1521A - Nastia and Nearly Good Numbers.cpp │ ├── 1521B - Nastia and a Good Array.cpp │ ├── 1523A - Game of Life.cpp │ ├── 1523B - Lord of the Values.cpp │ ├── 1525A - Potion-making.cpp │ ├── 1525B - Permutation Sort.cpp │ ├── 1526A - Mean Inequality.cpp │ ├── 1526B - I Hate 1111.cpp │ ├── 1527A - And Then There Were K.cpp │ ├── 1527B1 - Palindrome Game (easy version).cpp │ ├── 1529A - Eshag Loves Big Arrays.cpp │ ├── 1530A - Binary Decimal.cpp │ ├── 1530B - Putting Plates.cpp │ ├── 1535A - Fair Playoff.cpp │ ├── 1535B - Array Reodering.cpp │ ├── 1536A - Omkar and Bad Story.cpp │ ├── 1536B - Prinzessin der Verurteilung.cpp │ ├── 1536C - Diluc and Kaeya.cpp │ ├── 1537A - Arithmetic Array.cpp │ ├── 1537B - Bad Boy.cpp │ ├── 1538A - Stone Game.cpp │ ├── 1538B - Friends and Candies.cpp │ ├── 1539A - A. Contest Start.cpp │ ├── 1539B - Love Song.cpp │ ├── 1539C - Stable Groups.cpp │ ├── 1541A - Pretty Permutations.cpp │ ├── 1541B - Pleasant Pairs.cpp │ ├── 1541C - Great Graphs.cpp │ ├── 1543A - Exciting Bets.cpp │ ├── 1543B - Customising the Track.cpp │ ├── 1555C - Coin Rows.cpp │ ├── 1557A - Ezzat and Two Subsequences.cpp │ ├── 1557B - Moamen and k-subarrays.cpp │ ├── 155A - I_love_username.cpp │ ├── 1560A - Dislike of Threes.cpp │ ├── 157A - Game Outcome.cpp │ ├── 158A - Next Round.cpp │ ├── 160A - Twins.cpp │ ├── 1626A - Equidistant Letters.cpp │ ├── 1626B - Minor Reduction.cpp │ ├── 1646A - Square Counting.cpp │ ├── 1654A - Maximum Cake Tastiness.cpp │ ├── 1654B - Prefix Removals.cpp │ ├── 1654C - Alice and the Cake.cpp │ ├── 1656A - Good Pairs.cpp │ ├── 1669A - Division.cpp │ ├── 1669B - Triple.cpp │ ├── 1669C - Odd-Even Increments.cpp │ ├── 1669D - Colorful Stamp.cpp │ ├── 169A - Chores.cpp │ ├── 172A - Phone Code.cpp │ ├── 177A1 - Good Matrix Elements.cpp │ ├── 177A2 - Good Matrix Elements.cpp │ ├── 181A - Series of Crimes.cpp │ ├── 189A - Cut Ribbon.cpp │ ├── 1A - Theatre Square.cpp │ ├── 200B - Drinks.cpp │ ├── 208A - Dubstep.cpp │ ├── 228A - Is your horseshoe on the other hoof.cpp │ ├── 230A - Dragons.cpp │ ├── 236A - Boy or Girl.cpp │ ├── 245A - System Administrator.cpp │ ├── 255A - Greg's Workout.cpp │ ├── 25A - IQ test.cpp │ ├── 263A - Beautiful Matrix.cpp │ ├── 266A - Stones on the Table.cpp │ ├── 266B - Queue at the School.cpp │ ├── 268A - Games.cpp │ ├── 271A - Beautiful Year.cpp │ ├── 272A - Dima and Friends.cpp │ ├── 276A - Lunch Rush.cpp │ ├── 281A - Word Capitalization.cpp │ ├── 291A - Spyke Talks.cpp │ ├── 302A - Eugeny and Array.cpp │ ├── 306A - Candies.cpp │ ├── 313A - Ilya and Bank Account.cpp │ ├── 313B - Ilya and Queries.cpp │ ├── 318A - Even Odds.cpp │ ├── 320A - Magic Numbers.cpp │ ├── 32B - Borze.cpp │ ├── 330A - Cakeminator.cpp │ ├── 337A - Puzzles.cpp │ ├── 339A - Helpful Maths.cpp │ ├── 344A - Magnets.cpp │ ├── 34B - Sale.cpp │ ├── 363B - Fence.cpp │ ├── 378A - Playing with Dice.cpp │ ├── 385A - Bear and Raspberry.cpp │ ├── 386A - Second-Price Auction.cpp │ ├── 405A - Gravity Flip.cpp │ ├── 411A - Password Check.cpp │ ├── 41A - Translation.cpp │ ├── 421A - Pasha and Hamsters.cpp │ ├── 427A - Police Recruits.cpp │ ├── 432A - Choosing Teams.cpp │ ├── 439A - Devu, the Singer and Churu, the Joker.cpp │ ├── 440A - Forgotten Episode.cpp │ ├── 441A - Valera and Antique Items.cpp │ ├── 443A - Anton and Letters.cpp │ ├── 451A - Game With Sticks.cpp │ ├── 456A - Laptops.cpp │ ├── 459A - Pashmak and Garden.cpp │ ├── 460A - Vasya and Socks.cpp │ ├── 462A - Appleman and Easy Task.cpp │ ├── 466A - Cheap Travel.cpp │ ├── 467A - George and Accommodation.cpp │ ├── 469A - I Wanna Be the Guy.cpp │ ├── 46A - Ball Game.cpp │ ├── 472A - Design Tutorial Learn from Math.cpp │ ├── 474A - Keyboard.cpp │ ├── 476A - Dreamoon and Stairs.cpp │ ├── 479A - Expression.cpp │ ├── 483A - Counterexample.cpp │ ├── 486A - Calculating Function.cpp │ ├── 490A - Team Olympiad.cpp │ ├── 496A - Minimum Difficulty.cpp │ ├── 509A - Maximum in Table.cpp │ ├── 50A - Domino piling.cpp │ ├── 510A - Fox And Snake.cpp │ ├── 519A - A and B and Chess.cpp │ ├── 520A - Pangram.cpp │ ├── 546A- Soldier and Bananas.cpp │ ├── 556A - Case of the Zeros and Ones.cpp │ ├── 567A - Lineland Mail.cpp │ ├── 580A - Kefa and First Steps.cpp │ ├── 588A - Duff and Meat.cpp │ ├── 58A - Chat room.cpp │ ├── 598A - Tricky Sum.cpp │ ├── 59A - Word.cpp │ ├── 617A - Elephant.cpp │ ├── 61A - Ultra-Fast Mathematician.cpp │ ├── 658A - Bear and Reverse Radewoosh.cpp │ ├── 677A - Vanya and Fence.cpp │ ├── 69A - Young Physicist.cpp │ ├── 702A - Maximum Increase.cpp │ ├── 703A - Mishka and Game.cpp │ ├── 706B - Interesting drink.cpp │ ├── 709A - Juicer.cpp │ ├── 711A - Bus to Udayland.cpp │ ├── 723A - The New Year Meeting Friends.cpp │ ├── 732A - Buy a Shovel.cpp │ ├── 732B - Cormen — The Best Friend Of a Man.cpp │ ├── 734A - Anton and Danik.cpp │ ├── 742A - Arpa’s hard exam and Mehrdad’s naive cheat.cpp │ ├── 749A - Bachgold Problem.cpp │ ├── 750A - New Year and Hurry.cpp │ ├── 753A - Santa Claus and Candies.cpp │ ├── 755A - PolandBall and Hypothesis.cpp │ ├── 758A - Holiday Of Equality.cpp │ ├── 760A - Petr and a calenda.cpp │ ├── 760A - Petr and a calendar.cpp │ ├── 764B - Decoding.cpp │ ├── 768A - Oath of the Night's Watch.cpp │ ├── 769A - Year of University Entrance.cpp │ ├── 78A - Haiku.cpp │ ├── 794A - Bank Robbery.cpp │ ├── 802G - Fake News (easy).cpp │ ├── 818A - Diplomas and Certificates.cpp │ ├── 859A - Declined Finalists.cpp │ ├── 867A - Between the Offices.cpp │ ├── 873A - Chores.cpp │ ├── 873A - Chores.exe │ ├── 894A - QAQ.cpp │ ├── 910A - The Way to Home.cpp │ ├── 935A - Fafa and his Company.cpp │ ├── 939A - Love Triangle.cpp │ ├── 948A - Protect Sheep.cpp │ ├── 959A - Mahmoud and Ehab and the even-odd game.cpp │ ├── 96A - Football.cpp │ ├── 977B - Two-gram.cpp │ ├── 996A - Hit the Lottery.cpp │ ├── 99A - Help Far Away Kingdom.cpp │ ├── README.MD │ └── _template.cpp ├── cses │ └── Introductory Problems │ │ ├── Increasing Array.cpp │ │ ├── Missing Number.cpp │ │ ├── Permutations.cpp │ │ ├── Repetitions.cpp │ │ ├── Two Sets.cpp │ │ └── Weird Algorithm.cpp ├── hackerearth │ ├── basic_number_theory_Can you Guess.cpp │ ├── basic_number_theory_Love Triangle.cpp │ ├── basic_number_theory_Mystery.cpp │ ├── math_number_theory_Micro and Prime Prime.cpp │ └── math_number_theory_Prime Interval.cpp ├── hackerrank │ └── math_number_theory_Fibonacci Finding (easy).cpp ├── interviewbit │ ├── arrays │ │ ├── Add One To Number.cpp │ │ ├── Max Sum Contiguous Subarray.cpp │ │ ├── Maximum Absolute Difference.cpp │ │ ├── Min Steps in Infinite Grid.cpp │ │ └── Spiral Order Matrix I.cpp │ └── math │ │ ├── All Factors.cpp │ │ ├── Binary Representation.cpp │ │ ├── Hamming Distance.cpp │ │ ├── MATH_BUG0.cpp │ │ ├── MATH_BUG02.cpp │ │ ├── Prime Numbers.cpp │ │ ├── Prime Sum.cpp │ │ └── Verify Prime.cpp └── leetcode │ ├── 1. Two Sum.cpp │ ├── 100. Same Tree.cpp │ ├── 1002. Find Common Characters.cpp │ ├── 1004. Max Consecutive Ones III.cpp │ ├── 1007. Minimum Domino Rotations For Equal Row.cpp │ ├── 1009. Complement of Base 10 Integer.cpp │ ├── 101. Symmetric Tree.cpp │ ├── 1010. Pairs of Songs With Total Durations Divisible by 60.cpp │ ├── 102. Binary Tree Level Order Traversal.cpp │ ├── 1020. Number of Enclaves.cpp │ ├── 1021. Remove Outermost Parentheses.cpp │ ├── 1022. Sum of Root To Leaf Binary Numbers.cpp │ ├── 1025. Divisor Game.cpp │ ├── 1029. Two City Scheduling.cpp │ ├── 103. Binary Tree Zigzag Level Order Traversal.cpp │ ├── 1032. Stream of Characters.cpp │ ├── 1037. Valid Boomerang.cpp │ ├── 104. Maximum Depth of Binary Tree.cpp │ ├── 1041. Robot Bounded In Circle.cpp │ ├── 1046. Last Stone Weight.cpp │ ├── 1047. Remove All Adjacent Duplicates In String.cpp │ ├── 105. Construct Binary Tree from Preorder and Inorder Traversal.cpp │ ├── 1051. Height Checker.cpp │ ├── 106. Construct Binary Tree from Inorder and Postorder Traversal.cpp │ ├── 107. Binary Tree Level Order Traversal II.cpp │ ├── 108. Convert Sorted Array to Binary Search Tree.cpp │ ├── 1091. Shortest Path in Binary Matrix.cpp │ ├── 1094. Car Pooling.cpp │ ├── 11. Container With Most Water.cpp │ ├── 110. Balanced Binary Tree.cpp │ ├── 1103. Distribute Candies to People.cpp │ ├── 1108. Defanging an IP Address.cpp │ ├── 1122. Relative Sort Array.cpp │ ├── 113. Path Sum II.cpp │ ├── 1137. N-th Tribonacci Number.cpp │ ├── 114. Flatten Binary Tree to Linked List.cpp │ ├── 1143. Longest Common Subsequence.cpp │ ├── 116. Populating Next Right Pointers in Each Node.cpp │ ├── 1160. Find Words That Can Be Formed by Characters.cpp │ ├── 117. Populating Next Right Pointers in Each Node II.cpp │ ├── 1170. Compare Strings by Frequency of the Smallest Character.cpp │ ├── 118. Pascal's Triangle.cpp │ ├── 1189. Maximum Number of Balloons.cpp │ ├── 119. Pascal's Triangle II.cpp │ ├── 1192. Critical Connections in a Network.cpp │ ├── 12. Integer to Roman.cpp │ ├── 1202. Smallest String With Swaps.cpp │ ├── 1209. Remove All Adjacent Duplicates in String II.cpp │ ├── 121. Best Time to Buy and Sell Stock.cpp │ ├── 122. Best Time to Buy and Sell Stock II.cpp │ ├── 1221. Split a String in Balanced Strings.cpp │ ├── 123. Best Time to Buy and Sell Stock III.cpp │ ├── 1232. Check If It Is a Straight Line.cpp │ ├── 124. Binary Tree Maximum Path Sum.cpp │ ├── 125. Valid Palindrome.cpp │ ├── 1252. Cells with Odd Values in a Matrix.cpp │ ├── 1266. Minimum Time Visiting All Points.cpp │ ├── 128. Longest Consecutive Sequence.cpp │ ├── 1286. Iterator for Combination.cpp │ ├── 1288. Remove Covered Intervals.cpp │ ├── 129. Sum Root to Leaf Numbers.cpp │ ├── 1290. Convert Binary Number in a Linked List to Integer.cpp │ ├── 1291. Sequential Digits.cpp │ ├── 1295. Find Numbers with Even Number of Digits.cpp │ ├── 1299. Replace Elements with Greatest Element on Right Side.cpp │ ├── 13. Roman to Integer.cpp │ ├── 130. Surrounded Regions.cpp │ ├── 1302. Deepest Leaves Sum.cpp │ ├── 1304. Find N Unique Integers Sum up to Zero.cpp │ ├── 1305. All Elements in Two Binary Search Trees.cpp │ ├── 1309. Decrypt String from Alphabet to Integer Mapping.cpp │ ├── 131. Palindrome Partitioning.cpp │ ├── 1313. Decompress Run-Length Encoded List.cpp │ ├── 132. Palindrome Partitioning II.cpp │ ├── 1323. Maximum 69 Number.cpp │ ├── 133. Clone Graph.cpp │ ├── 1332. Remove Palindromic Subsequences.cpp │ ├── 1337. The K Weakest Rows in a Matrix.cpp │ ├── 134. Gas Station.cpp │ ├── 1342. Number of Steps to Reduce a Number to Zero.cpp │ ├── 1344. Angle Between Hands of a Clock.cpp │ ├── 1347. Minimum Number of Steps to Make Two Strings Anagram.cpp │ ├── 135. Candy.cpp │ ├── 1351. Count Negative Numbers in a Sorted Matrix.cpp │ ├── 136. Single Number.cpp │ ├── 1365. How Many Numbers Are Smaller Than the Current Number.cpp │ ├── 137. Single Number II.cpp │ ├── 1370. Increasing Decreasing String.cpp │ ├── 1374. Generate a String With Characters That Have Odd Counts.cpp │ ├── 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree.cpp │ ├── 138. Copy List with Random Pointer.cpp │ ├── 1380. Lucky Numbers in a Matrix.cpp │ ├── 1385. Find the Distance Value Between Two Arrays.cpp │ ├── 1387. Sort Integers by The Power Value.cpp │ ├── 1389. Create Target Array in the Given Order.cpp │ ├── 139. Word Break.cpp │ ├── 1396. Design Underground System.cpp │ ├── 14. Longest Common Prefix.cpp │ ├── 1401A - Distance and Axis.cpp │ ├── 1408. String Matching in an Array.cpp │ ├── 141. Linked List Cycle.cpp │ ├── 142. Linked List Cycle II.cpp │ ├── 143. Reorder List.cpp │ ├── 1431. Kids With the Greatest Number of Candies.cpp │ ├── 1436. Destination City.cpp │ ├── 144. Binary Tree Preorder Traversal.cpp │ ├── 1441. Build an Array With Stack Operations.cpp │ ├── 1446. Consecutive Characters.cpp │ ├── 1448. Count Good Nodes in Binary Tree.cpp │ ├── 145. Binary Tree Postorder Traversal.cpp │ ├── 1450. Number of Students Doing Homework at a Given Time.cpp │ ├── 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence.cpp │ ├── 1456. Maximum Number of Vowels in a Substring of Given Length.cpp │ ├── 146. LRU Cache.cpp │ ├── 1460. Make Two Arrays Equal by Reversing Sub-arrays.cpp │ ├── 1464. Maximum Product of Two Elements in an Array.cpp │ ├── 147. Insertion Sort List.cpp │ ├── 1470. Shuffle the Array.cpp │ ├── 1475. Final Prices With a Special Discount in a Shop.cpp │ ├── 148. Sort List.cpp │ ├── 1480. Running Sum of 1d Array.cpp │ ├── 1486. XOR Operation in an Array.cpp │ ├── 1491. Average Salary Excluding the Minimum and Maximum Salary.cpp │ ├── 1492. The kth Factor of n.cpp │ ├── 1498. Number of Subsequences That Satisfy the Given Sum Condition.cpp │ ├── 15. 3Sum.cpp │ ├── 1502. Can Make Arithmetic Progression From Sequence.cpp │ ├── 1507. Reformat Date.cpp │ ├── 151. Reverse Words in a String.cpp │ ├── 1512. Number of Good Pairs.cpp │ ├── 152. Maximum Product Subarray.cpp │ ├── 1534. Count Good Triplets.cpp │ ├── 154. Find Minimum in Rotated Sorted Array II.cpp │ ├── 1544. Make The String Great.cpp │ ├── 1550. Three Consecutive Odds.cpp │ ├── 1551. Minimum Operations to Make Array Equal.cpp │ ├── 1553. Minimum Number of Days to Eat N Oranges.cpp │ ├── 1556. Thousand Separator.cpp │ ├── 1557. Minimum Number of Vertices to Reach All Nodes.cpp │ ├── 1560. Most Visited Sector in a Circular Track.cpp │ ├── 1572. Matrix Diagonal Sum.cpp │ ├── 1576. Replace All 's to Avoid Consecutive Repeating Characters.cpp │ ├── 1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers.cpp │ ├── 1578. Minimum Deletion Cost to Avoid Repeating Letters.cpp │ ├── 1582. Special Positions in a Binary Matrix.cpp │ ├── 1588. Sum of All Odd Length Subarrays.cpp │ ├── 1592. Rearrange Spaces Between Words.cpp │ ├── 1598. Crawler Log Folder.cpp │ ├── 160. Intersection of Two Linked Lists.cpp │ ├── 1603. Design Parking System.cpp │ ├── 1608. Special Array With X Elements Greater Than or Equal X.cpp │ ├── 1609. Even Odd Tree.cpp │ ├── 1614. Maximum Nesting Depth of the Parentheses.cpp │ ├── 1615. Maximal Network Rank.cpp │ ├── 1624. Largest Substring Between Two Equal Characters.cpp │ ├── 1629. Slowest Key.cpp │ ├── 1630. Arithmetic Subarrays.cpp │ ├── 1641. Count Sorted Vowel Strings.cpp │ ├── 165. Compare Version Numbers.cpp │ ├── 1656. Design an Ordered Stream.cpp │ ├── 1657. Determine if Two Strings Are Close.cpp │ ├── 1679. Max Number of K-Sum Pairs.cpp │ ├── 168. Excel Sheet Column Title.cpp │ ├── 169. Majority Element.cpp │ ├── 17. Letter Combinations of a Phone Number.cpp │ ├── 171. Excel Sheet Column Number.cpp │ ├── 1716. Calculate Money in Leetcode Bank.cpp │ ├── 172. Factorial Trailing Zeroes.cpp │ ├── 1721. Swapping Nodes in a Linked List.cpp │ ├── 173. Binary Search Tree Iterator.cpp │ ├── 174. Dungeon Game.cpp │ ├── 1768. Merge Strings Alternately.cpp │ ├── 179. Largest Number.cpp │ ├── 1791. Find Center of Star Graph.cpp │ ├── 18. 4Sum.cpp │ ├── 1822. Sign of the Product of an Array.cpp │ ├── 1854. Maximum Population Year.cpp │ ├── 1855. Maximum Distance Between a Pair of Values.cpp │ ├── 1863. Sum of All Subset XOR Totals.cpp │ ├── 1864. Minimum Number of Swaps to Make the Binary String Alternating.cpp │ ├── 1880. Check if Word Equals Summation of Two Words.cpp │ ├── 1881. Maximum Value after Insertion.cpp │ ├── 1884. Egg Drop With 2 Eggs and N Floors.cpp │ ├── 19. Remove Nth Node From End of List.cpp │ ├── 190. Reverse Bits.cpp │ ├── 191. Number of 1 Bits.cpp │ ├── 1913. Maximum Product Difference Between Two Pairs.cpp │ ├── 1914. Cyclically Rotating a Grid.cpp │ ├── 1964. Find the Longest Valid Obstacle Course at Each Position.cpp │ ├── 1971. Find if Path Exists in Graph.cpp │ ├── 198. House Robber.cpp │ ├── 2. Add Two Numbers.cpp │ ├── 200. Number of Islands.cpp │ ├── 2020-August-Challenge │ ├── Day-01-Detect Capital.cpp │ ├── Day-02-Design HashSet.cpp │ ├── Day-03-Valid Palindrome.cpp │ ├── Day-04-Power of Four.cpp │ ├── Day-05-Add and Search Word - Data structure design.cpp │ ├── Day-06-Find All Duplicates in an Array.cpp │ ├── Day-07-Vertical Order Traversal of a Binary Tree.cpp │ ├── Day-09-Rotting Oranges.cpp │ ├── Day-10-Excel Sheet Column Number.cpp │ ├── Day-11-H-Index.cpp │ ├── Day-12-Pascal's Triangle II.cpp │ ├── Day-13-Iterator for Combination.cpp │ ├── Day-14-Longest Palindrome.cpp │ ├── Day-15-Non-overlapping Intervals.cpp │ ├── Day-16-Best Time to Buy and Sell Stock III.cpp │ ├── Day-17-Distribute Candies to People.cpp │ ├── Day-18-Numbers With Same Consecutive Differences.cpp │ ├── Day-19-Goat Latin.cpp │ ├── Day-20-Reorder List.cpp │ ├── Day-22-Sort Array By Parity.cpp │ ├── Day-23-Stream of Characters.cpp │ ├── Day-24-Sum of Left Leaves.cpp │ ├── Day-25-Minimum Cost For Tickets.cpp │ ├── Day-26-Fizz Buzz.cpp │ ├── Day-27-Find Right Interval.cpp │ ├── Day-28-Implement Rand10() Using Rand7().cpp │ └── Day-30-Largest Component Size by Common Factor.cpp │ ├── 2020-December-Challenge │ ├── Day-01-Maximum Depth of Binary Tree.cpp │ ├── Day-02-Linked List Random Node.cpp │ ├── Day-03-Increasing Order Search Tree.cpp │ ├── Day-04-The kth Factor of n.cpp │ ├── Day-05-Can Place Flowers.cpp │ ├── Day-07-Spiral Matrix II.cpp │ ├── Day-08-Pairs of Songs With Total Durations Divisible by 60.cpp │ ├── Day-09-Binary Search Tree Iterator.cpp │ ├── Day-10-Valid Mountain Array.cpp │ ├── Day-11-Remove Duplicates from Sorted Array II.cpp │ ├── Day-12-Smallest Subtree with all the Deepest Nodes.cpp │ ├── Day-15-Squares of a Sorted Array.cpp │ ├── Day-16-Validate Binary Search Tree.cpp │ ├── Day-17-4Sum II.cpp │ └── Day-22-Balanced Binary Tree.cpp │ ├── 2020-July-Challenge │ ├── Day-01-Arranging Coins.cpp │ ├── Day-02-Binary Tree Level Order Traversal II.cpp │ ├── Day-03-Prison Cells After N Days.cpp │ ├── Day-04-Ugly Number II.cpp │ ├── Day-05-Hamming Distance.cpp │ ├── Day-06-Plus One.cpp │ ├── Day-07-Island Perimeter.cpp │ ├── Day-08-3Sum.cpp │ ├── Day-09-Maximum Width of Binary Tree.cpp │ ├── Day-10-Flatten a Multilevel Doubly Linked List.cpp │ ├── Day-11-Subsets.cpp │ ├── Day-12-Reverse Bits.cpp │ ├── Day-13-Same Tree.cpp │ ├── Day-14-Angle Between Hands of a Clock.cpp │ ├── Day-15-Reverse Words in a String.cpp │ ├── Day-16-Pow(x, n).cpp │ ├── Day-17-Top K Frequent Elements.cpp │ ├── Day-18-Course Schedule II.cpp │ ├── Day-19-Add Binary.cpp │ ├── Day-20-Remove Linked List Elements.cpp │ ├── Day-21-Word Search.cpp │ ├── Day-22-Binary Tree Zigzag Level Order Traversal.cpp │ ├── Day-23-Single Number III.cpp │ ├── Day-24-All Paths From Source to Target.cpp │ ├── Day-25-Find Minimum in Rotated Sorted Array II.cpp │ ├── Day-26-Add Digits.cpp │ ├── Day-27-Construct Binary Tree from Inorder and Postorder Traversal.cpp │ ├── Day-28-Task Scheduler.cpp │ ├── Day-29-Best Time to Buy and Sell Stock with Cooldown.cpp │ ├── Day-30-Word Break II.cpp │ └── Day-31-Climbing Stairs.cpp │ ├── 2020-June-Challenge │ ├── Day-01-Invert Binary Tree.cpp │ ├── Day-02-Delete Node in a Linked List.cpp │ ├── Day-03-Two City Scheduling.cpp │ ├── Day-04-Reverse String.cpp │ ├── Day-05-Random Pick with Weight.cpp │ ├── Day-06-Queue Reconstruction by Height.cpp │ ├── Day-07-Coin Change 2.cpp │ ├── Day-08-Power of Two.cpp │ ├── Day-09-Is Subsequence.cpp │ ├── Day-10-Search Insert Position.cpp │ ├── Day-11-Sort Colors.cpp │ ├── Day-12-Insert Delete GetRandom O(1).cpp │ ├── Day-13-Largest Divisible Subset.cpp │ ├── Day-14-Cheapest Flights Within K Stops.cpp │ ├── Day-15-Search in a Binary Search Tree.cpp │ ├── Day-16-Validate IP Address.cpp │ ├── Day-17-Surrounded Regions.cpp │ ├── Day-18-H-Index II.cpp │ ├── Day-19-Longest Duplicate Substring.cpp │ ├── Day-20-Permutation Sequence.cpp │ ├── Day-21-Dungeon Game.cpp │ ├── Day-22-Single Number II.cpp │ ├── Day-23-Count Complete Tree Nodes.cpp │ ├── Day-24-Unique Binary Search Trees.cpp │ ├── Day-25-Find the Duplicate Number.cpp │ ├── Day-26-Sum Root to Leaf Numbers.cpp │ ├── Day-27-Perfect Squares.cpp │ ├── Day-28-Reconstruct Itinerary.cpp │ ├── Day-29-Unique Paths.cpp │ └── Day-30-Word Search II.cpp │ ├── 2020-November-Challenge │ ├── Day-01-Convert Binary Number in a Linked List to Integer.cpp │ ├── Day-02-Insertion Sort List.cpp │ ├── Day-03-Consecutive Characters.cpp │ ├── Day-11-Flipping an Image.cpp │ └── Day-11-Valid Square.cpp │ ├── 2020-October-Challenge │ ├── Day-01-Number of Recent Calls.cpp │ ├── Day-02-Combination Sum.cpp │ ├── Day-03-K-diff Pairs in an Array.cpp │ ├── Day-04-Remove Covered Intervals.cpp │ ├── Day-05-Complement of Base 10 Integer.cpp │ ├── Day-06-Insert into a Binary Search Tree.cpp │ ├── Day-07-Rotate List.cpp │ ├── Day-08-Binary Search.cpp │ ├── Day-09-Serialize and Deserialize BST.cpp │ ├── Day-10-Minimum Number of Arrows to Burst Balloons.cpp │ ├── Day-11-Remove Duplicate Letters.cpp │ ├── Day-12-Buddy Strings.cpp │ ├── Day-13-Sort List.cpp │ └── Day-14-House Robber II.cpp │ ├── 2020-September-Challenge │ ├── Day-01-Largest Time for Given Digits.cpp │ ├── Day-02-Contains Duplicate III.cpp │ ├── Day-03-Repeated Substring Pattern.cpp │ ├── Day-05-All Elements in Two Binary Search Trees.cpp │ ├── Day-07-Word Pattern.cpp │ ├── Day-08-Sum of Root To Leaf Binary Numbers.cpp │ ├── Day-09-Compare Version Numbers.cpp │ ├── Day-10-Bulls and Cows.cpp │ ├── Day-11-Maximum Product Subarray.cpp │ ├── Day-12-Combination Sum III.cpp │ ├── Day-14-House Robber.cpp │ ├── Day-15-Length of Last Word.cpp │ ├── Day-17-Robot Bounded In Circle.cpp │ ├── Day-18-Best Time to Buy and Sell Stock.cpp │ ├── Day-19-Sequential Digits.cpp │ ├── Day-21-Car Pooling.cpp │ ├── Day-22-Majority Element II.cpp │ ├── Day-23-Gas Station.cpp │ ├── Day-24-Find the Difference.cpp │ ├── Day-25-Largest Number.cpp │ └── Day-26-Teemo Attacking.cpp │ ├── 2021-June-Challenge │ └── Day-01-Max Area of Island.cpp │ ├── 203. Remove Linked List Elements.cpp │ ├── 204. Count Primes.cpp │ ├── 205. Isomorphic Strings.cpp │ ├── 206. Reverse Linked List.cpp │ ├── 207. Course Schedule.cpp │ ├── 209. Minimum Size Subarray Sum.cpp │ ├── 21. Merge Two Sorted Lists.cpp │ ├── 210. Course Schedule II.cpp │ ├── 211. Add and Search Word - Data structure design.cpp │ ├── 212. Word Search II.cpp │ ├── 213. House Robber II.cpp │ ├── 2130. Maximum Twin Sum of a Linked List.cpp │ ├── 215. Kth Largest Element in an Array.cpp │ ├── 216. Combination Sum III.cpp │ ├── 220. Contains Duplicate III.cpp │ ├── 221. Maximal Square.cpp │ ├── 2215. Find the Difference of Two Arrays.cpp │ ├── 222. Count Complete Tree Nodes.cpp │ ├── 225. Implement Stack using Queues.cpp │ ├── 226. Invert Binary Tree.cpp │ ├── 229. Majority Element II.cpp │ ├── 230. Kth Smallest Element in a BST.cpp │ ├── 231. Power of Two.cpp │ ├── 234. Palindrome Linked List.cpp │ ├── 235. Lowest Common Ancestor of a Binary Search Tree.cpp │ ├── 236. Lowest Common Ancestor of a Binary Tree.cpp │ ├── 237. Delete Node in a Linked List.cpp │ ├── 2389. Longest Subsequence With Limited Sum.cpp │ ├── 239. Sliding Window Maximum.cpp │ ├── 24. Swap Nodes in Pairs.cpp │ ├── 242. Valid Anagram.cpp │ ├── 2487. Remove Nodes From Linked List.cpp │ ├── 25. Reverse Nodes in k-Group.cpp │ ├── 2500. Delete Greatest Value in Each Row.cpp │ ├── 258. Add Digits.cpp │ ├── 26. Remove Duplicates from Sorted Array.cpp │ ├── 260. Single Number III.cpp │ ├── 264. Ugly Number II.cpp │ ├── 2643. Row With Maximum Ones.cpp │ ├── 2644. Find the Maximum Divisibility Score.cpp │ ├── 2645. Minimum Additions to Make Valid String.cpp │ ├── 268. Missing Number.cpp │ ├── 274. H-Index.cpp │ ├── 275. H-Index II.cpp │ ├── 279. Perfect Squares.cpp │ ├── 28. Implement strStr().cpp │ ├── 283. Move Zeroes.cpp │ ├── 284. Peeking Iterator.cpp │ ├── 287. Find the Duplicate Number.cpp │ ├── 29. Divide Two Integers.cpp │ ├── 290. Word Pattern.cpp │ ├── 295. Find Median from Data Stream.cpp │ ├── 297. Serialize and Deserialize Binary Tree.cpp │ ├── 299. Bulls and Cows.cpp │ ├── 3. Longest Substring Without Repeating Characters.cpp │ ├── 300. Longest Increasing Subsequence.cpp │ ├── 303. Range Sum Query - Immutable.cpp │ ├── 309. Best Time to Buy and Sell Stock with Cooldown.cpp │ ├── 31. Next Permutation.cpp │ ├── 316. Remove Duplicate Letters.cpp │ ├── 319. Bulb Switcher.cpp │ ├── 322. Coin Change.cpp │ ├── 326. Power of Three.cpp │ ├── 328. Odd Even Linked List.cpp │ ├── 329. Longest Increasing Path in a Matrix.cpp │ ├── 33. Search in Rotated Sorted Array.cpp │ ├── 332. Reconstruct Itinerary.cpp │ ├── 338. Counting Bits.cpp │ ├── 34. Find First and Last Position of Element in Sorted Array.cpp │ ├── 341. Flatten Nested List Iterator.cpp │ ├── 342. Power of Four.cpp │ ├── 344. Reverse String.cpp │ ├── 347. Top K Frequent Elements.cpp │ ├── 35. Search Insert Position.cpp │ ├── 36. Valid Sudoku.cpp │ ├── 367. Valid Perfect Square.cpp │ ├── 368. Largest Divisible Subset.cpp │ ├── 38. Count and Say.cpp │ ├── 380. Insert Delete GetRandom O(1).cpp │ ├── 382. Linked List Random Node.cpp │ ├── 389. Find the Difference.cpp │ ├── 39. Combination Sum.cpp │ ├── 392. Is Subsequence.cpp │ ├── 399. Evaluate Division.cpp │ ├── 40. Combination Sum II.cpp │ ├── 404. Sum of Left Leaves.cpp │ ├── 406. Queue Reconstruction by Height.cpp │ ├── 409. Longest Palindrome.cpp │ ├── 412. Fizz Buzz.cpp │ ├── 415. Add Strings.cpp │ ├── 416. Partition Equal Subset Sum.cpp │ ├── 42. Trapping Rain Water.cpp │ ├── 424. Longest Repeating Character Replacement.cpp │ ├── 429. N-ary Tree Level Order Traversal.cpp │ ├── 43. Multiply Strings.cpp │ ├── 430. Flatten a Multilevel Doubly Linked List.cpp │ ├── 435. Non-overlapping Intervals.cpp │ ├── 436. Find Right Interval.cpp │ ├── 438. Find All Anagrams in a String.cpp │ ├── 441. Arranging Coins.cpp │ ├── 442. Find All Duplicates in an Array.cpp │ ├── 443. String Compression.cpp │ ├── 445. Add Two Numbers II.cpp │ ├── 448. Find All Numbers Disappeared in an Array.cpp │ ├── 449. Serialize and Deserialize BST.cpp │ ├── 452. Minimum Number of Arrows to Burst Balloons.cpp │ ├── 454. 4Sum II.cpp │ ├── 456. 132 Pattern.cpp │ ├── 459. Repeated Substring Pattern.cpp │ ├── 46. Permutations.cpp │ ├── 461. Hamming Distance.cpp │ ├── 463. Island Perimeter.cpp │ ├── 468. Validate IP Address.cpp │ ├── 47. Permutations II.cpp │ ├── 470. Implement Rand10() Using Rand7().cpp │ ├── 476. Number Complement.cpp │ ├── 477. Total Hamming Distance.cpp │ ├── 48. Rotate Image.cpp │ ├── 485. Max Consecutive Ones.cpp │ ├── 49. Group Anagrams.cpp │ ├── 495. Teemo Attacking.cpp │ ├── 496. Next Greater Element I.cpp │ ├── 5. Longest Palindromic Substring.cpp │ ├── 50. Pow(x, n).cpp │ ├── 507. Perfect Number.cpp │ ├── 509. Fibonacci Number.cpp │ ├── 518. Coin Change 2.cpp │ ├── 520. Detect Capital.cpp │ ├── 528. Random Pick with Weight.cpp │ ├── 53. Maximum Subarray.cpp │ ├── 532. K-diff Pairs in an Array.cpp │ ├── 535. Encode and Decode TinyURL.cpp │ ├── 54. Spiral Matrix.cpp │ ├── 543. Diameter of Binary Tree.cpp │ ├── 547. Number of Provinces.cpp │ ├── 557. Reverse Words in a String III.cpp │ ├── 56. Merge Intervals.cpp │ ├── 560. Subarray Sum Equals K.cpp │ ├── 561. Array Partition I.cpp │ ├── 567. Permutation in String.cpp │ ├── 58. Length of Last Word.cpp │ ├── 581. Shortest Unsorted Continuous Subarray.cpp │ ├── 59. Spiral Matrix II.cpp │ ├── 593. Valid Square.cpp │ ├── 60. Permutation Sequence.cpp │ ├── 605. Can Place Flowers.cpp │ ├── 61. Rotate List.cpp │ ├── 62. Unique Paths.cpp │ ├── 621. Task Scheduler.cpp │ ├── 63. Unique Paths II.cpp │ ├── 633. Sum of Square Numbers.cpp │ ├── 64. Minimum Path Sum.cpp │ ├── 645. Set Mismatch.cpp │ ├── 649. Dota2 Senate.cpp │ ├── 653. Two Sum IV - Input is a BST.cpp │ ├── 657. Robot Return to Origin.cpp │ ├── 658. Find K Closest Elements.cpp │ ├── 66. Plus One.cpp │ ├── 662. Maximum Width of Binary Tree.cpp │ ├── 67. Add Binary.cpp │ ├── 671. Second Minimum Node In a Binary Tree.cpp │ ├── 682. Baseball Game.cpp │ ├── 684. Redundant Connection.cpp │ ├── 686. Repeated String Match.cpp │ ├── 69. Sqrt(x).cpp │ ├── 693. Binary Number with Alternating Bits.cpp │ ├── 695. Max Area of Island.cpp │ ├── 7. Reverse Integer.cpp │ ├── 70. Climbing Stairs.cpp │ ├── 700. Search in a Binary Search Tree.cpp │ ├── 701. Insert into a Binary Search Tree.cpp │ ├── 703. Kth Largest Element in a Stream.cpp │ ├── 704. Binary Search.cpp │ ├── 705. Design HashSet.cpp │ ├── 706. Design HashMap.cpp │ ├── 709. To Lower Case.cpp │ ├── 72. Edit Distance.cpp │ ├── 724. Find Pivot Index.cpp │ ├── 73. Set Matrix Zeroes.cpp │ ├── 733. Flood Fill.cpp │ ├── 743. Network Delay Time.cpp │ ├── 746. Min Cost Climbing Stairs.cpp │ ├── 75. Sort Colors.cpp │ ├── 76. Minimum Window Substring.cpp │ ├── 763. Partition Labels.cpp │ ├── 767. Reorganize String.cpp │ ├── 771. Jewels and Stones.cpp │ ├── 775. Global and Local Inversions.cpp │ ├── 78. Subsets.cpp │ ├── 785. Is Graph Bipartite.cpp │ ├── 787. Cheapest Flights Within K Stops.cpp │ ├── 788. Rotated Digits.cpp │ ├── 79. Word Search.cpp │ ├── 797. All Paths From Source to Target.cpp │ ├── 8. String to Integer (atoi).cpp │ ├── 80. Remove Duplicates from Sorted Array II.cpp │ ├── 804. Unique Morse Code Words.cpp │ ├── 82. Remove Duplicates from Sorted List II.cpp │ ├── 824. Goat Latin.cpp │ ├── 83. Remove Duplicates from Sorted List.cpp │ ├── 832. Flipping an Image.cpp │ ├── 836. Rectangle Overlap.cpp │ ├── 84. Largest Rectangle in Histogram.cpp │ ├── 841. Keys and Rooms.cpp │ ├── 844. Backspace String Compare.cpp │ ├── 859. Buddy Strings.cpp │ ├── 865. Smallest Subtree with all the Deepest Nodes.cpp │ ├── 867. Transpose Matrix.cpp │ ├── 876. Middle of the Linked List.cpp │ ├── 877. Stone Game.cpp │ ├── 881. Boats to Save People.cpp │ ├── 887. Super Egg Drop.cpp │ ├── 890. Find and Replace Pattern.cpp │ ├── 893. Groups of Special-Equivalent Strings.cpp │ ├── 897. Increasing Order Search Tree.cpp │ ├── 9. Palindrome Number.cpp │ ├── 90. Subsets II.cpp │ ├── 904. Fruit Into Baskets.cpp │ ├── 905. Sort Array By Parity.cpp │ ├── 908. Smallest Range I.cpp │ ├── 91. Decode Ways.cpp │ ├── 914. X of a Kind in a Deck of Cards.cpp │ ├── 92. Reverse Linked List II.cpp │ ├── 922. Sort Array By Parity II.cpp │ ├── 926. Flip String to Monotone Increasing.cpp │ ├── 929. Unique Email Addresses.cpp │ ├── 933. Number of Recent Calls.cpp │ ├── 94. Binary Tree Inorder Traversal.cpp │ ├── 941. Valid Mountain Array.cpp │ ├── 946. Validate Stack Sequences.cpp │ ├── 949. Largest Time for Given Digits.cpp │ ├── 952. Largest Component Size by Common Factor.cpp │ ├── 954. Array of Doubled Pairs.cpp │ ├── 957. Prison Cells After N Days.cpp │ ├── 96. Unique Binary Search Trees.cpp │ ├── 967. Numbers With Same Consecutive Differences.cpp │ ├── 970. Powerful Integers.cpp │ ├── 973. K Closest Points to Origin.cpp │ ├── 977. Squares of a Sorted Array.cpp │ ├── 98. Validate Binary Search Tree7. Reverse Integer.cpp │ ├── 983. Minimum Cost For Tickets.cpp │ ├── 987. Vertical Order Traversal of a Binary Tree.cpp │ ├── 994. Rotting Oranges..cpp │ ├── 997. Find the Town Judge.cpp │ ├── 999. Available Captures for Rook.cpp │ └── README.MD ├── dynamic programming ├── 01_knapsack.cpp ├── 01_knapsack_memoization.cpp ├── 01_knapsack_recursive.cpp ├── 01_knapsack_tabulation.cpp ├── 2_egg_n_floor.cpp ├── 416. Partition Equal Subset Sum.cpp ├── boolean_patenthesization_memoization.cpp ├── boolean_patenthesization_recursive.cpp ├── coin_change_min_num_of_ways.cpp ├── coin_change_num_of_ways.cpp ├── decode_ways.cpp ├── egg_drop_all.cpp ├── egg_dropping_memoization.cpp ├── egg_dropping_recursive.cpp ├── longest_common_subsequence_memoization.cpp ├── longest_common_subsequence_recursive.cpp ├── longest_common_subsequence_tabulation.cpp ├── longest_common_substring_tabulation.cpp ├── longest_palindromic_subsequence.cpp ├── longest_repeating_subsequence.cpp ├── matrix_chain_multiplication_memoization.cpp ├── matrix_chain_multiplication_recursive.cpp ├── max_path_sum_top_left_to_bottom_right_corner.cpp ├── max_sum_increasing_subsequence.cpp ├── maximal_square.cpp ├── min_cost_climbing_stairs.cpp ├── min_days_to_eat_n_oranges.cpp ├── min_num_of_deletion_to_make_palindrome.cpp ├── min_num_of_insertion_deletion.cpp ├── min_num_of_insertion_to_make_palindrome.cpp ├── min_path_sum.cpp ├── minimum_sum_partition.cpp ├── palindromic_partitioning_memoization.cpp ├── palindromic_partitioning_recursive.cpp ├── print_longest_common_subsequence.cpp ├── print_shortest_common_supersequence.cpp ├── rod_cutting.cpp ├── sequence_pattern_matching.cpp ├── shortest_common_supersequence.cpp ├── subset_count_with_given_difference.cpp ├── subset_sum.cpp ├── subset_sum_count.cpp ├── unbounded_01_knapsack.cpp ├── unique_path_in_matrix.cpp └── unique_paths.cpp ├── graph ├── adjList_graph_weighted.cpp ├── adjacentList_graph.cpp ├── adjacentList_graph_containg_letters_as_values.cpp ├── bfs.cpp ├── bipartite_graph.cpp ├── celebrity_problem.cpp ├── clone_a_graph.cpp ├── cycle_detection_directed_graph_dfs.cpp ├── cycle_detection_undirected_graph_bfs.cpp ├── cycle_detection_undirected_graph_dfs.cpp ├── dfs.cpp ├── dijkstras_algorithm.cpp ├── finding_bridges_in_a_graph.cpp ├── full_dfs.cpp ├── invert_graph.cpp ├── kosarajus_algorithm.cpp ├── minimum_spanning_tree_prims.cpp ├── prims_mst_algorithm.cpp ├── rotten_oranges.cpp └── transitive_closure_graph.cpp ├── linked list ├── LRU_Cache.cpp ├── add_two_numbers_2_in_form_of_linked_list.cpp ├── add_two_numbers_in_form_of_linked_list.cpp ├── copy_list_with_random_pointer.cpp ├── create_linked_list.cpp ├── delete_given_node_in_linked_list.cpp ├── detect_cycle_in_linked_list.cpp ├── find_node_where_cycle_begins_in_linked_list.cpp ├── flatten_multilevel_doubly_linked_list.cpp ├── intersection_of_two_linked_list.cpp ├── maximum_twin_sum_in_linked_list.cpp ├── merge_two_sorted_list.cpp ├── middle_of_the_linked_list.cpp ├── pairwise_swap.cpp ├── palindrome_check.cpp ├── remove_all_duplicates_sorted_linked_list.cpp ├── remove_all_nodes_which_has_right_node_with_greater_value.cpp ├── remove_duplicates_sorted_linked_list.cpp ├── remove_duplicates_unsorted_linked_list.cpp ├── remove_element_in_linked_list.cpp ├── remove_nth_node_from_end_of_linked_list.cpp ├── reorder_odd_even_linked_list.cpp ├── reverse_linked_list.cpp ├── reverse_linked_list_in_groups_of_k.cpp ├── reverse_linked_list_in_range.cpp ├── rotate_linked_list_right_k_places.cpp ├── sort_linked_list.cpp ├── swap_actual_x_y_nodes_from_linked_list.cpp └── swap_kth_node_from_begin_end_in_linked_list.cpp ├── mathematical ├── catalan.cpp ├── check_if_prime.cpp ├── euler_totient_function.cpp ├── euler_totient_function_from_1_to_n.cpp ├── extended_eucledian_algorithm.cpp ├── fermats_primality_test.cpp ├── gcd_a_b.cpp ├── linear_diophantine_equation.cpp ├── matrix_exponentiation.cpp ├── segmented_sieve.cpp ├── seive_of_eratosthenes.cpp ├── trailing_zeros_in_factorial.cpp ├── x_power_n_negative_decimal.cpp └── x_power_y.cpp ├── matrix ├── diagonal_sum_matrix.cpp ├── rotate_matrix_90_anticlockwise.cpp ├── spiral_matrix.cpp └── spiral_matrix_2.cpp ├── recursion ├── Geek-onacci Number.cpp ├── Geeks's Garden.cpp └── Reach the target.cpp ├── sdeProblemSheet.md ├── sliding window ├── find_all_anagram_position.cpp ├── find_permutation_in_string.cpp ├── first_negative_in_every_window_of_size_k.cpp ├── longest_repeating_character_replacement.cpp ├── longest_substring_with_exactly_k_distinct_characters.cpp ├── longest_substring_without_repeating_characters.cpp ├── max_continous_ones_with_k_0_flips.cpp ├── max_element_in_every_window_of_size_k.cpp ├── max_length_subarray_having_2_distinct_element.cpp ├── max_sum_subarray_of_size_k.cpp ├── maximum_num_of_vowel_in_a_window.cpp ├── min_length_subarray_with_target_sum.cpp └── smallest_window_containing_substring.cpp ├── stack ├── max_rectangular_area_histogram.cpp ├── min_stack_O(1).cpp ├── min_stack_extra_space.cpp ├── next_larger_element_in_array.cpp └── stock_span_problem.cpp ├── string ├── add_binary_numbers.cpp ├── decode_string.cpp ├── excel_sheet_column_number.cpp ├── extra_char_in_string.cpp ├── integer_or_string_check.cpp ├── isZero.cpp ├── kmp_string_matching.cpp ├── miising_char_to_make_pangram.cpp ├── min_character_to_add_in_front_to_make_string_palindrome.cpp ├── num_of_palindromic_substrings.cpp ├── palindromic_anagram.cpp ├── pangram_check.cpp ├── pangrammatic_lipogram.cpp ├── rabin_karp.cpp ├── round_to_nearest_ten.cpp ├── seperate_adjacent_characters_in_string.cpp └── z_algorithm_string_matching.cpp ├── tree ├── binary_search_tree_iterator.cpp ├── binary_tree_to_doubly_linked_list.cpp ├── bottom_order_view.cpp ├── check_isvalid_bst.cpp ├── complete_binary_tree_using_array.cpp ├── complete_binary_tree_using_given_array.cpp ├── count_bst_nodes_in_a_range.cpp ├── count_nodes_in_a_complete_binary_tree.cpp ├── create_bst.cpp ├── create_bst_duplicates.cpp ├── delete_even_rows.cpp ├── deletion_in_binary_tree.cpp ├── diameter_of_binary_tree.cpp ├── floor_and_ceil_of_a_bst.cpp ├── inorder_traversal_recursive.cpp ├── inorder_traversal_without_recursion.cpp ├── insertion_binary_tree_levelorder.cpp ├── invert_a_binary_tree.cpp ├── kth_largest_element_bst.cpp ├── kth_smallest_element_bst.cpp ├── largest_bst_in_binary_tree.cpp ├── largest_root_to_leaf_sum.cpp ├── left_view_simple_recusion.cpp ├── left_view_using_level_order.cpp ├── levelorder_traversal_using_queue.cpp ├── max_path_sum_any_node_to_node_binary_tree.cpp ├── merge_binary_trees.cpp ├── palindromic_binary_tree.cpp ├── postorder_traversal_recursive.cpp ├── postorder_traversal_without_recusrion_one_stack.cpp ├── postorder_traversal_without_recusrion_two_stack.cpp ├── predecessor_successor_in_bst.cpp ├── preorder_traversal_recursive.cpp ├── preorder_traversal_without_recursion.cpp ├── range_sum_query_segment_tree.cpp ├── simple_tree.cpp ├── sum_of_Digit_Paths_in_a_Tree.cpp ├── sum_of_right_leaves.cpp ├── top_order_view.cpp ├── trie_insert_and_search.cpp ├── update_node_with_left_righ_subtree_sum.cpp └── vertical_order_traversal.cpp └── two pointers └── num_of_subsequences_that_staisfiy_sum_condition.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | temporary/ 2 | Notes.md 3 | .cph 4 | .vscode 5 | Personal.cpp 6 | -------------------------------------------------------------------------------- /CPPNotes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/CPPNotes.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/README.md -------------------------------------------------------------------------------- /SQL/175. Combine Two Tables.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/SQL/175. Combine Two Tables.cpp -------------------------------------------------------------------------------- /SQL/175. Combine Two Tables.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/SQL/175. Combine Two Tables.txt -------------------------------------------------------------------------------- /algorithms/graph/bellmanFord_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/graph/bellmanFord_algorithm.cpp -------------------------------------------------------------------------------- /algorithms/graph/dijkstras_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/graph/dijkstras_algorithm.cpp -------------------------------------------------------------------------------- /algorithms/graph/floyd_warshall_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/graph/floyd_warshall_algorithm.cpp -------------------------------------------------------------------------------- /algorithms/graph/kosarajus_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/graph/kosarajus_algorithm.cpp -------------------------------------------------------------------------------- /algorithms/graph/kruskals_mst_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/graph/kruskals_mst_algorithm.cpp -------------------------------------------------------------------------------- /algorithms/graph/prims_mst_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/graph/prims_mst_algorithm.cpp -------------------------------------------------------------------------------- /algorithms/graph/topological_sorting_dfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/graph/topological_sorting_dfs.cpp -------------------------------------------------------------------------------- /algorithms/searching/binary_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/searching/binary_search.cpp -------------------------------------------------------------------------------- /algorithms/searching/exponential_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/searching/exponential_search.cpp -------------------------------------------------------------------------------- /algorithms/searching/interpolation_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/searching/interpolation_search.cpp -------------------------------------------------------------------------------- /algorithms/searching/jump_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/searching/jump_search.cpp -------------------------------------------------------------------------------- /algorithms/searching/linear_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/searching/linear_search.cpp -------------------------------------------------------------------------------- /algorithms/sorting/merge_sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/sorting/merge_sort.cpp -------------------------------------------------------------------------------- /algorithms/sorting/quick_select.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/sorting/quick_select.cpp -------------------------------------------------------------------------------- /algorithms/sorting/quick_sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/algorithms/sorting/quick_sort.cpp -------------------------------------------------------------------------------- /array/array_pair_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/array_pair_sum.cpp -------------------------------------------------------------------------------- /array/array_product_except_ith_element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/array_product_except_ith_element.cpp -------------------------------------------------------------------------------- /array/binary_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/binary_search.cpp -------------------------------------------------------------------------------- /array/connect_ropes_with_min_cost.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/connect_ropes_with_min_cost.cpp -------------------------------------------------------------------------------- /array/count_of_element_binary_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/count_of_element_binary_search.cpp -------------------------------------------------------------------------------- /array/distinct_element_in_window_of_size_k.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/distinct_element_in_window_of_size_k.cpp -------------------------------------------------------------------------------- /array/first_and_last_occurence_of_element_binary_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/first_and_last_occurence_of_element_binary_search.cpp -------------------------------------------------------------------------------- /array/floor_of_num_in_sorted_array_binary_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/floor_of_num_in_sorted_array_binary_search.cpp -------------------------------------------------------------------------------- /array/generate_all_subarrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/generate_all_subarrays.cpp -------------------------------------------------------------------------------- /array/inversion_count_merge_sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/inversion_count_merge_sort.cpp -------------------------------------------------------------------------------- /array/juggling_rotation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/juggling_rotation.cpp -------------------------------------------------------------------------------- /array/k_closest_num_max_heap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/k_closest_num_max_heap.cpp -------------------------------------------------------------------------------- /array/k_closest_points_to_origin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/k_closest_points_to_origin.cpp -------------------------------------------------------------------------------- /array/k_largest_num_min_heap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/k_largest_num_min_heap.cpp -------------------------------------------------------------------------------- /array/kadanes_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/kadanes_algorithm.cpp -------------------------------------------------------------------------------- /array/kth_smallest_num_max_heap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/kth_smallest_num_max_heap.cpp -------------------------------------------------------------------------------- /array/largest_subarray_with_sum_0.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/largest_subarray_with_sum_0.cpp -------------------------------------------------------------------------------- /array/longest_non_decreasing_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/longest_non_decreasing_subsequence.cpp -------------------------------------------------------------------------------- /array/max_hamming_distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/max_hamming_distance.cpp -------------------------------------------------------------------------------- /array/merge_intervals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/merge_intervals.cpp -------------------------------------------------------------------------------- /array/merge_two_sorted_array_O(1)_space.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/merge_two_sorted_array_O(1)_space.cpp -------------------------------------------------------------------------------- /array/missing_and_repeating_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/missing_and_repeating_number.cpp -------------------------------------------------------------------------------- /array/num_of_rotation_in_sorted_array_binary_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/num_of_rotation_in_sorted_array_binary_search.cpp -------------------------------------------------------------------------------- /array/quick_left_rotate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/quick_left_rotate.cpp -------------------------------------------------------------------------------- /array/rotated_max_i_multiply_ai.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/rotated_max_i_multiply_ai.cpp -------------------------------------------------------------------------------- /array/rotated_pivot_point.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/rotated_pivot_point.cpp -------------------------------------------------------------------------------- /array/rotated_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/rotated_search.cpp -------------------------------------------------------------------------------- /array/set_matrix_ones_in_O(1).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/set_matrix_ones_in_O(1).cpp -------------------------------------------------------------------------------- /array/sort_k_sorted_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/sort_k_sorted_array.cpp -------------------------------------------------------------------------------- /array/sorted_rotated_min_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/sorted_rotated_min_search.cpp -------------------------------------------------------------------------------- /array/sorted_rotated_sum_pair_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/sorted_rotated_sum_pair_search.cpp -------------------------------------------------------------------------------- /array/sum_of_elements_between_k1_k2_th_smallest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/sum_of_elements_between_k1_k2_th_smallest.cpp -------------------------------------------------------------------------------- /array/three_sum_problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/three_sum_problem.cpp -------------------------------------------------------------------------------- /array/top_k_frequent_nums_min_heap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/top_k_frequent_nums_min_heap.cpp -------------------------------------------------------------------------------- /array/trapping_rain_water.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/array/trapping_rain_water.cpp -------------------------------------------------------------------------------- /backtracking/graph_coloring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/backtracking/graph_coloring.cpp -------------------------------------------------------------------------------- /backtracking/knight_tour.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/backtracking/knight_tour.cpp -------------------------------------------------------------------------------- /backtracking/n_queen_columnwise.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/backtracking/n_queen_columnwise.cpp -------------------------------------------------------------------------------- /backtracking/n_queen_rowwise.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/backtracking/n_queen_rowwise.cpp -------------------------------------------------------------------------------- /backtracking/palindromic_partioning.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/backtracking/palindromic_partioning.cpp -------------------------------------------------------------------------------- /backtracking/rat_in_a_maze.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/backtracking/rat_in_a_maze.cpp -------------------------------------------------------------------------------- /backtracking/sudoku.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/backtracking/sudoku.cpp -------------------------------------------------------------------------------- /bit magic/Max_Character_Distinct_Words.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/bit magic/Max_Character_Distinct_Words.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/ADAMAT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/ADAMAT.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/CHEFWARS.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/CHEFWARS.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/CHFICRM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/CHFICRM.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/COPR16G.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/COPR16G.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/CRDGAME3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/CRDGAME3.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/EOEO.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/EOEO.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/EVENM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/EVENM.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/GCDQ.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/GCDQ.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/LINCHESS.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/LINCHESS.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/PRB01.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/PRB01.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/PRICECON.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/PRICECON.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/README.MD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/README.MD -------------------------------------------------------------------------------- /competitive programming/codechef/TREE2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/TREE2.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/XYSTR.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/XYSTR.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/chefstlt.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/chefstlt.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/diffsum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/diffsum.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/flow014.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/flow014.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/ppsum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/ppsum.cpp -------------------------------------------------------------------------------- /competitive programming/codechef/twtclose.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codechef/twtclose.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1055A - Metro.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1055A - Metro.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1056A - Determine Line.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1056A - Determine Line.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1075A - The King's Race.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1075A - The King's Race.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/110A - Nearly Lucky Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/110A - Nearly Lucky Number.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1113A - Sasha and His Trip.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1113A - Sasha and His Trip.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/112A - Petya and Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/112A - Petya and Strings.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1146A - Love A.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1146A - Love A.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/115A - Party.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/115A - Party.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/116A - Tram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/116A - Tram.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1180A - Alex and a Rhombus.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1180A - Alex and a Rhombus.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1182A - Filling Shapes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1182A - Filling Shapes.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1220A - Cards.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1220A - Cards.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1223A - CME.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1223A - CME.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/122A - Lucky Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/122A - Lucky Division.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1238A - Prime Subtraction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1238A - Prime Subtraction.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1250F - Data Center.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1250F - Data Center.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1272A - Three Friends.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1272A - Three Friends.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1281A - Suffix Three.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1281A - Suffix Three.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1283B - Candies Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1283B - Candies Division.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1284A - New Year and Naming.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1284A - New Year and Naming.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1295A - Display The Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1295A - Display The Number.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1296B - Food Buying.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1296B - Food Buying.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/12A - Super Agent.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/12A - Super Agent.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/131A - cAPS lOCK.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/131A - cAPS lOCK.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1326B - Maximums.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1326B - Maximums.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1328A - Divisibility Problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1328A - Divisibility Problem.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1335B - Construct the String.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1335B - Construct the String.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1339A - Filling Diamonds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1339A - Filling Diamonds.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/133A - HQ9+.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/133A - HQ9+.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1341A - Nastya and Rice.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1341A - Nastya and Rice.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1343A - Candies.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1343A - Candies.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1343B - Balanced Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1343B - Balanced Array.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1348A - Phoenix and Balance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1348A - Phoenix and Balance.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1350A - Orac and Factors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1350A - Orac and Factors.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1350C - Orac and LCM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1350C - Orac and LCM.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1352A - Sum of Round Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1352A - Sum of Round Numbers.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1353A - Most Unstable Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1353A - Most Unstable Array.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1353B - Two Arrays And Swaps.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1353B - Two Arrays And Swaps.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1354A - Alarm Clock.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1354A - Alarm Clock.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1359B - New Theatre Square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1359B - New Theatre Square.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1360A - Minimal Square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1360A - Minimal Square.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1360B - Honest Coach.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1360B - Honest Coach.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1367A - Short Substrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1367A - Short Substrings.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1367B - Even Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1367B - Even Array.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/136A - Presents.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/136A - Presents.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1370A - Maximum GCD.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1370A - Maximum GCD.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1371A - Magical Sticks.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1371A - Magical Sticks.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1373B - 01 Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1373B - 01 Game.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1374A - Required Remainder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1374A - Required Remainder.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1380A - Three Indices.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1380A - Three Indices.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1399B - Gifts Fixing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1399B - Gifts Fixing.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1406A - Subset Mex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1406A - Subset Mex.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1419A - Digit Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1419A - Digit Game.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/141A - Amusing Joke.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/141A - Amusing Joke.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1420A - Cubes Sorting.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1420A - Cubes Sorting.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1426B - Symmetric Matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1426B - Symmetric Matrix.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1430A - Number of Apartments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1430A - Number of Apartments.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1433C - Dominant Piranha.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1433C - Dominant Piranha.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1436B - Prime Square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1436B - Prime Square.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1440A -Buy the String.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1440A -Buy the String.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1440B - Sum of Medians.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1440B - Sum of Medians.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/144A - Arrival of the General.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/144A - Arrival of the General.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1450A - Avoid Trygub.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1450A - Avoid Trygub.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1452A - Robot Program.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1452A - Robot Program.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1452C - Two Brackets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1452C - Two Brackets.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1461A - String Generation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1461A - String Generation.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1462B - Last Year's Substring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1462B - Last Year's Substring.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1462C - Unique Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1462C - Unique Number.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1465A - In-game Chat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1465A - In-game Chat.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1465B - Fair Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1465B - Fair Numbers.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1466A - Bovine Dilemma.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1466A - Bovine Dilemma.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1467A - Wizard of Orz.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1467A - Wizard of Orz.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1467B - Hills And Valleys.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1467B - Hills And Valleys.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1469B - Red and Blue.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1469B - Red and Blue.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1472B - Fair Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1472B - Fair Division.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1473A - Replacing Elements.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1473A - Replacing Elements.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1473B - String LCM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1473B - String LCM.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1475A - Odd Divisor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1475A - Odd Divisor.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1475B - New Year's Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1475B - New Year's Number.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1486A - Shifting Stacks.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1486A - Shifting Stacks.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/148A - Insomnia cure.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/148A - Insomnia cure.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1490A - Dense Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1490A - Dense Array.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1490B - Balanced Remainders.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1490B - Balanced Remainders.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1494A - ABC String.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1494A - ABC String.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1499B - Binary Removals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1499B - Binary Removals.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/149A - Business trip.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/149A - Business trip.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/14A - Letter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/14A - Letter.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1501B - Napoleon Cake.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1501B - Napoleon Cake.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1515A - Phoenix and Gold.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1515A - Phoenix and Gold.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1515B - Phoenix and Puzzle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1515B - Phoenix and Puzzle.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1519A - Red and Blue Beans.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1519A - Red and Blue Beans.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1519B - The Cake Is a Lie.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1519B - The Cake Is a Lie.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/151A - Soft Drinking.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/151A - Soft Drinking.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1520A - Do Not Be Distracted.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1520A - Do Not Be Distracted.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1520B - Ordinary Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1520B - Ordinary Numbers.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1520C - Not Adjacent Matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1520C - Not Adjacent Matrix.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1520D - Same Differences.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1520D - Same Differences.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1523A - Game of Life.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1523A - Game of Life.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1523B - Lord of the Values.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1523B - Lord of the Values.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1525A - Potion-making.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1525A - Potion-making.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1525B - Permutation Sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1525B - Permutation Sort.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1526A - Mean Inequality.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1526A - Mean Inequality.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1526B - I Hate 1111.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1526B - I Hate 1111.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1527A - And Then There Were K.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1527A - And Then There Were K.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1530A - Binary Decimal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1530A - Binary Decimal.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1530B - Putting Plates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1530B - Putting Plates.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1535A - Fair Playoff.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1535A - Fair Playoff.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1535B - Array Reodering.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1535B - Array Reodering.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1536A - Omkar and Bad Story.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1536A - Omkar and Bad Story.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1536C - Diluc and Kaeya.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1536C - Diluc and Kaeya.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1537A - Arithmetic Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1537A - Arithmetic Array.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1537B - Bad Boy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1537B - Bad Boy.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1538A - Stone Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1538A - Stone Game.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1538B - Friends and Candies.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1538B - Friends and Candies.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1539A - A. Contest Start.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1539A - A. Contest Start.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1539B - Love Song.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1539B - Love Song.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1539C - Stable Groups.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1539C - Stable Groups.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1541A - Pretty Permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1541A - Pretty Permutations.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1541B - Pleasant Pairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1541B - Pleasant Pairs.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1541C - Great Graphs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1541C - Great Graphs.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1543A - Exciting Bets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1543A - Exciting Bets.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1543B - Customising the Track.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1543B - Customising the Track.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1555C - Coin Rows.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1555C - Coin Rows.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/155A - I_love_username.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/155A - I_love_username.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1560A - Dislike of Threes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1560A - Dislike of Threes.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/157A - Game Outcome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/157A - Game Outcome.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/158A - Next Round.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/158A - Next Round.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/160A - Twins.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/160A - Twins.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1626A - Equidistant Letters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1626A - Equidistant Letters.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1626B - Minor Reduction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1626B - Minor Reduction.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1646A - Square Counting.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1646A - Square Counting.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1654B - Prefix Removals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1654B - Prefix Removals.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1654C - Alice and the Cake.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1654C - Alice and the Cake.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1656A - Good Pairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1656A - Good Pairs.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1669A - Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1669A - Division.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1669B - Triple.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1669B - Triple.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1669C - Odd-Even Increments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1669C - Odd-Even Increments.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1669D - Colorful Stamp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1669D - Colorful Stamp.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/169A - Chores.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/169A - Chores.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/172A - Phone Code.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/172A - Phone Code.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/177A1 - Good Matrix Elements.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/177A1 - Good Matrix Elements.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/177A2 - Good Matrix Elements.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/177A2 - Good Matrix Elements.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/181A - Series of Crimes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/181A - Series of Crimes.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/189A - Cut Ribbon.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/189A - Cut Ribbon.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/1A - Theatre Square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/1A - Theatre Square.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/200B - Drinks.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/200B - Drinks.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/208A - Dubstep.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/208A - Dubstep.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/230A - Dragons.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/230A - Dragons.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/236A - Boy or Girl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/236A - Boy or Girl.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/245A - System Administrator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/245A - System Administrator.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/255A - Greg's Workout.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/255A - Greg's Workout.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/25A - IQ test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/25A - IQ test.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/263A - Beautiful Matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/263A - Beautiful Matrix.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/266A - Stones on the Table.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/266A - Stones on the Table.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/266B - Queue at the School.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/266B - Queue at the School.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/268A - Games.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/268A - Games.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/271A - Beautiful Year.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/271A - Beautiful Year.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/272A - Dima and Friends.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/272A - Dima and Friends.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/276A - Lunch Rush.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/276A - Lunch Rush.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/281A - Word Capitalization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/281A - Word Capitalization.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/291A - Spyke Talks.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/291A - Spyke Talks.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/302A - Eugeny and Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/302A - Eugeny and Array.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/306A - Candies.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/306A - Candies.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/313A - Ilya and Bank Account.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/313A - Ilya and Bank Account.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/313B - Ilya and Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/313B - Ilya and Queries.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/318A - Even Odds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/318A - Even Odds.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/320A - Magic Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/320A - Magic Numbers.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/32B - Borze.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/32B - Borze.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/330A - Cakeminator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/330A - Cakeminator.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/337A - Puzzles.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/337A - Puzzles.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/339A - Helpful Maths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/339A - Helpful Maths.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/344A - Magnets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/344A - Magnets.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/34B - Sale.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/34B - Sale.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/363B - Fence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/363B - Fence.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/378A - Playing with Dice.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/378A - Playing with Dice.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/385A - Bear and Raspberry.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/385A - Bear and Raspberry.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/386A - Second-Price Auction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/386A - Second-Price Auction.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/405A - Gravity Flip.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/405A - Gravity Flip.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/411A - Password Check.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/411A - Password Check.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/41A - Translation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/41A - Translation.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/421A - Pasha and Hamsters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/421A - Pasha and Hamsters.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/427A - Police Recruits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/427A - Police Recruits.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/432A - Choosing Teams.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/432A - Choosing Teams.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/440A - Forgotten Episode.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/440A - Forgotten Episode.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/443A - Anton and Letters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/443A - Anton and Letters.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/451A - Game With Sticks.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/451A - Game With Sticks.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/456A - Laptops.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/456A - Laptops.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/459A - Pashmak and Garden.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/459A - Pashmak and Garden.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/460A - Vasya and Socks.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/460A - Vasya and Socks.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/462A - Appleman and Easy Task.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/462A - Appleman and Easy Task.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/466A - Cheap Travel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/466A - Cheap Travel.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/469A - I Wanna Be the Guy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/469A - I Wanna Be the Guy.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/46A - Ball Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/46A - Ball Game.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/474A - Keyboard.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/474A - Keyboard.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/476A - Dreamoon and Stairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/476A - Dreamoon and Stairs.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/479A - Expression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/479A - Expression.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/483A - Counterexample.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/483A - Counterexample.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/486A - Calculating Function.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/486A - Calculating Function.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/490A - Team Olympiad.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/490A - Team Olympiad.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/496A - Minimum Difficulty.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/496A - Minimum Difficulty.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/509A - Maximum in Table.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/509A - Maximum in Table.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/50A - Domino piling.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/50A - Domino piling.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/510A - Fox And Snake.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/510A - Fox And Snake.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/519A - A and B and Chess.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/519A - A and B and Chess.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/520A - Pangram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/520A - Pangram.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/546A- Soldier and Bananas.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/546A- Soldier and Bananas.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/567A - Lineland Mail.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/567A - Lineland Mail.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/580A - Kefa and First Steps.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/580A - Kefa and First Steps.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/588A - Duff and Meat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/588A - Duff and Meat.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/58A - Chat room.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/58A - Chat room.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/598A - Tricky Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/598A - Tricky Sum.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/59A - Word.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/59A - Word.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/617A - Elephant.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/617A - Elephant.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/677A - Vanya and Fence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/677A - Vanya and Fence.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/69A - Young Physicist.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/69A - Young Physicist.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/702A - Maximum Increase.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/702A - Maximum Increase.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/703A - Mishka and Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/703A - Mishka and Game.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/706B - Interesting drink.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/706B - Interesting drink.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/709A - Juicer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/709A - Juicer.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/711A - Bus to Udayland.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/711A - Bus to Udayland.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/732A - Buy a Shovel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/732A - Buy a Shovel.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/734A - Anton and Danik.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/734A - Anton and Danik.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/749A - Bachgold Problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/749A - Bachgold Problem.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/750A - New Year and Hurry.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/750A - New Year and Hurry.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/758A - Holiday Of Equality.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/758A - Holiday Of Equality.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/760A - Petr and a calenda.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/760A - Petr and a calenda.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/760A - Petr and a calendar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/760A - Petr and a calendar.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/764B - Decoding.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/764B - Decoding.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/78A - Haiku.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/78A - Haiku.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/794A - Bank Robbery.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/794A - Bank Robbery.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/802G - Fake News (easy).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/802G - Fake News (easy).cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/859A - Declined Finalists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/859A - Declined Finalists.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/867A - Between the Offices.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/867A - Between the Offices.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/873A - Chores.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/873A - Chores.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/873A - Chores.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/873A - Chores.exe -------------------------------------------------------------------------------- /competitive programming/codeforces/894A - QAQ.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/894A - QAQ.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/910A - The Way to Home.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/910A - The Way to Home.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/935A - Fafa and his Company.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/935A - Fafa and his Company.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/939A - Love Triangle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/939A - Love Triangle.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/948A - Protect Sheep.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/948A - Protect Sheep.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/96A - Football.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/96A - Football.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/977B - Two-gram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/977B - Two-gram.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/996A - Hit the Lottery.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/996A - Hit the Lottery.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/99A - Help Far Away Kingdom.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/99A - Help Far Away Kingdom.cpp -------------------------------------------------------------------------------- /competitive programming/codeforces/README.MD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/README.MD -------------------------------------------------------------------------------- /competitive programming/codeforces/_template.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/codeforces/_template.cpp -------------------------------------------------------------------------------- /competitive programming/cses/Introductory Problems/Permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/cses/Introductory Problems/Permutations.cpp -------------------------------------------------------------------------------- /competitive programming/cses/Introductory Problems/Repetitions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/cses/Introductory Problems/Repetitions.cpp -------------------------------------------------------------------------------- /competitive programming/cses/Introductory Problems/Two Sets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/cses/Introductory Problems/Two Sets.cpp -------------------------------------------------------------------------------- /competitive programming/interviewbit/arrays/Add One To Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/interviewbit/arrays/Add One To Number.cpp -------------------------------------------------------------------------------- /competitive programming/interviewbit/math/All Factors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/interviewbit/math/All Factors.cpp -------------------------------------------------------------------------------- /competitive programming/interviewbit/math/Hamming Distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/interviewbit/math/Hamming Distance.cpp -------------------------------------------------------------------------------- /competitive programming/interviewbit/math/MATH_BUG0.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/interviewbit/math/MATH_BUG0.cpp -------------------------------------------------------------------------------- /competitive programming/interviewbit/math/MATH_BUG02.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/interviewbit/math/MATH_BUG02.cpp -------------------------------------------------------------------------------- /competitive programming/interviewbit/math/Prime Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/interviewbit/math/Prime Numbers.cpp -------------------------------------------------------------------------------- /competitive programming/interviewbit/math/Prime Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/interviewbit/math/Prime Sum.cpp -------------------------------------------------------------------------------- /competitive programming/interviewbit/math/Verify Prime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/interviewbit/math/Verify Prime.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1. Two Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1. Two Sum.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/100. Same Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/100. Same Tree.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1002. Find Common Characters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1002. Find Common Characters.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/101. Symmetric Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/101. Symmetric Tree.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1020. Number of Enclaves.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1020. Number of Enclaves.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1025. Divisor Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1025. Divisor Game.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1029. Two City Scheduling.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1029. Two City Scheduling.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1032. Stream of Characters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1032. Stream of Characters.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1037. Valid Boomerang.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1037. Valid Boomerang.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1046. Last Stone Weight.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1046. Last Stone Weight.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1051. Height Checker.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1051. Height Checker.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1094. Car Pooling.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1094. Car Pooling.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/110. Balanced Binary Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/110. Balanced Binary Tree.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1122. Relative Sort Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1122. Relative Sort Array.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/113. Path Sum II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/113. Path Sum II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1137. N-th Tribonacci Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1137. N-th Tribonacci Number.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/118. Pascal's Triangle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/118. Pascal's Triangle.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/119. Pascal's Triangle II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/119. Pascal's Triangle II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/12. Integer to Roman.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/12. Integer to Roman.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/125. Valid Palindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/125. Valid Palindrome.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1291. Sequential Digits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1291. Sequential Digits.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/13. Roman to Integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/13. Roman to Integer.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/130. Surrounded Regions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/130. Surrounded Regions.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1302. Deepest Leaves Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1302. Deepest Leaves Sum.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/131. Palindrome Partitioning.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/131. Palindrome Partitioning.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1323. Maximum 69 Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1323. Maximum 69 Number.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/133. Clone Graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/133. Clone Graph.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/134. Gas Station.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/134. Gas Station.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/135. Candy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/135. Candy.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/136. Single Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/136. Single Number.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/137. Single Number II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/137. Single Number II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/139. Word Break.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/139. Word Break.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/14. Longest Common Prefix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/14. Longest Common Prefix.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1401A - Distance and Axis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1401A - Distance and Axis.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/141. Linked List Cycle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/141. Linked List Cycle.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/142. Linked List Cycle II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/142. Linked List Cycle II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/143. Reorder List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/143. Reorder List.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1436. Destination City.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1436. Destination City.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1446. Consecutive Characters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1446. Consecutive Characters.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/146. LRU Cache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/146. LRU Cache.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/147. Insertion Sort List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/147. Insertion Sort List.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1470. Shuffle the Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1470. Shuffle the Array.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/148. Sort List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/148. Sort List.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1492. The kth Factor of n.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1492. The kth Factor of n.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/15. 3Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/15. 3Sum.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1507. Reformat Date.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1507. Reformat Date.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1512. Number of Good Pairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1512. Number of Good Pairs.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1534. Count Good Triplets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1534. Count Good Triplets.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1544. Make The String Great.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1544. Make The String Great.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1550. Three Consecutive Odds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1550. Three Consecutive Odds.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1556. Thousand Separator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1556. Thousand Separator.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1572. Matrix Diagonal Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1572. Matrix Diagonal Sum.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1598. Crawler Log Folder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1598. Crawler Log Folder.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1603. Design Parking System.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1603. Design Parking System.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1609. Even Odd Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1609. Even Odd Tree.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1615. Maximal Network Rank.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1615. Maximal Network Rank.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1629. Slowest Key.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1629. Slowest Key.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/1630. Arithmetic Subarrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/1630. Arithmetic Subarrays.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/165. Compare Version Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/165. Compare Version Numbers.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/169. Majority Element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/169. Majority Element.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/174. Dungeon Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/174. Dungeon Game.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/179. Largest Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/179. Largest Number.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/18. 4Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/18. 4Sum.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/190. Reverse Bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/190. Reverse Bits.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/191. Number of 1 Bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/191. Number of 1 Bits.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/198. House Robber.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/198. House Robber.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/2. Add Two Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/2. Add Two Numbers.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/200. Number of Islands.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/200. Number of Islands.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/204. Count Primes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/204. Count Primes.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/205. Isomorphic Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/205. Isomorphic Strings.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/206. Reverse Linked List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/206. Reverse Linked List.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/207. Course Schedule.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/207. Course Schedule.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/21. Merge Two Sorted Lists.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/21. Merge Two Sorted Lists.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/210. Course Schedule II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/210. Course Schedule II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/212. Word Search II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/212. Word Search II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/213. House Robber II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/213. House Robber II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/216. Combination Sum III.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/216. Combination Sum III.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/220. Contains Duplicate III.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/220. Contains Duplicate III.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/221. Maximal Square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/221. Maximal Square.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/226. Invert Binary Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/226. Invert Binary Tree.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/229. Majority Element II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/229. Majority Element II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/231. Power of Two.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/231. Power of Two.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/234. Palindrome Linked List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/234. Palindrome Linked List.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/239. Sliding Window Maximum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/239. Sliding Window Maximum.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/24. Swap Nodes in Pairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/24. Swap Nodes in Pairs.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/242. Valid Anagram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/242. Valid Anagram.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/25. Reverse Nodes in k-Group.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/25. Reverse Nodes in k-Group.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/258. Add Digits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/258. Add Digits.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/260. Single Number III.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/260. Single Number III.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/264. Ugly Number II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/264. Ugly Number II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/2643. Row With Maximum Ones.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/2643. Row With Maximum Ones.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/268. Missing Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/268. Missing Number.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/274. H-Index.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/274. H-Index.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/275. H-Index II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/275. H-Index II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/279. Perfect Squares.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/279. Perfect Squares.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/28. Implement strStr().cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/28. Implement strStr().cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/283. Move Zeroes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/283. Move Zeroes.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/284. Peeking Iterator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/284. Peeking Iterator.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/29. Divide Two Integers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/29. Divide Two Integers.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/290. Word Pattern.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/290. Word Pattern.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/299. Bulls and Cows.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/299. Bulls and Cows.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/31. Next Permutation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/31. Next Permutation.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/319. Bulb Switcher.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/319. Bulb Switcher.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/322. Coin Change.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/322. Coin Change.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/326. Power of Three.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/326. Power of Three.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/328. Odd Even Linked List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/328. Odd Even Linked List.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/332. Reconstruct Itinerary.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/332. Reconstruct Itinerary.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/338. Counting Bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/338. Counting Bits.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/342. Power of Four.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/342. Power of Four.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/344. Reverse String.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/344. Reverse String.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/347. Top K Frequent Elements.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/347. Top K Frequent Elements.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/35. Search Insert Position.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/35. Search Insert Position.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/36. Valid Sudoku.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/36. Valid Sudoku.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/367. Valid Perfect Square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/367. Valid Perfect Square.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/38. Count and Say.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/38. Count and Say.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/382. Linked List Random Node.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/382. Linked List Random Node.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/389. Find the Difference.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/389. Find the Difference.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/39. Combination Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/39. Combination Sum.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/392. Is Subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/392. Is Subsequence.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/399. Evaluate Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/399. Evaluate Division.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/40. Combination Sum II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/40. Combination Sum II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/404. Sum of Left Leaves.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/404. Sum of Left Leaves.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/409. Longest Palindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/409. Longest Palindrome.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/412. Fizz Buzz.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/412. Fizz Buzz.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/415. Add Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/415. Add Strings.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/42. Trapping Rain Water.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/42. Trapping Rain Water.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/43. Multiply Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/43. Multiply Strings.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/436. Find Right Interval.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/436. Find Right Interval.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/441. Arranging Coins.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/441. Arranging Coins.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/443. String Compression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/443. String Compression.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/445. Add Two Numbers II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/445. Add Two Numbers II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/454. 4Sum II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/454. 4Sum II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/456. 132 Pattern.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/456. 132 Pattern.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/46. Permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/46. Permutations.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/461. Hamming Distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/461. Hamming Distance.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/463. Island Perimeter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/463. Island Perimeter.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/468. Validate IP Address.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/468. Validate IP Address.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/47. Permutations II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/47. Permutations II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/476. Number Complement.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/476. Number Complement.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/477. Total Hamming Distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/477. Total Hamming Distance.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/48. Rotate Image.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/48. Rotate Image.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/485. Max Consecutive Ones.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/485. Max Consecutive Ones.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/49. Group Anagrams.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/49. Group Anagrams.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/495. Teemo Attacking.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/495. Teemo Attacking.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/496. Next Greater Element I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/496. Next Greater Element I.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/50. Pow(x, n).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/50. Pow(x, n).cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/507. Perfect Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/507. Perfect Number.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/509. Fibonacci Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/509. Fibonacci Number.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/518. Coin Change 2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/518. Coin Change 2.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/520. Detect Capital.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/520. Detect Capital.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/528. Random Pick with Weight.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/528. Random Pick with Weight.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/53. Maximum Subarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/53. Maximum Subarray.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/54. Spiral Matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/54. Spiral Matrix.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/543. Diameter of Binary Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/543. Diameter of Binary Tree.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/547. Number of Provinces.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/547. Number of Provinces.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/56. Merge Intervals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/56. Merge Intervals.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/560. Subarray Sum Equals K.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/560. Subarray Sum Equals K.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/561. Array Partition I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/561. Array Partition I.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/567. Permutation in String.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/567. Permutation in String.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/58. Length of Last Word.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/58. Length of Last Word.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/59. Spiral Matrix II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/59. Spiral Matrix II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/593. Valid Square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/593. Valid Square.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/60. Permutation Sequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/60. Permutation Sequence.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/605. Can Place Flowers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/605. Can Place Flowers.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/61. Rotate List.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/61. Rotate List.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/62. Unique Paths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/62. Unique Paths.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/621. Task Scheduler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/621. Task Scheduler.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/63. Unique Paths II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/63. Unique Paths II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/633. Sum of Square Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/633. Sum of Square Numbers.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/64. Minimum Path Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/64. Minimum Path Sum.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/645. Set Mismatch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/645. Set Mismatch.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/649. Dota2 Senate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/649. Dota2 Senate.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/657. Robot Return to Origin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/657. Robot Return to Origin.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/658. Find K Closest Elements.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/658. Find K Closest Elements.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/66. Plus One.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/66. Plus One.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/67. Add Binary.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/67. Add Binary.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/682. Baseball Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/682. Baseball Game.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/684. Redundant Connection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/684. Redundant Connection.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/686. Repeated String Match.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/686. Repeated String Match.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/69. Sqrt(x).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/69. Sqrt(x).cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/695. Max Area of Island.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/695. Max Area of Island.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/7. Reverse Integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/7. Reverse Integer.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/70. Climbing Stairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/70. Climbing Stairs.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/704. Binary Search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/704. Binary Search.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/705. Design HashSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/705. Design HashSet.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/706. Design HashMap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/706. Design HashMap.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/709. To Lower Case.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/709. To Lower Case.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/72. Edit Distance.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/72. Edit Distance.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/724. Find Pivot Index.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/724. Find Pivot Index.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/73. Set Matrix Zeroes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/73. Set Matrix Zeroes.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/733. Flood Fill.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/733. Flood Fill.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/743. Network Delay Time.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/743. Network Delay Time.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/75. Sort Colors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/75. Sort Colors.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/76. Minimum Window Substring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/76. Minimum Window Substring.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/763. Partition Labels.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/763. Partition Labels.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/767. Reorganize String.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/767. Reorganize String.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/771. Jewels and Stones.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/771. Jewels and Stones.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/78. Subsets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/78. Subsets.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/785. Is Graph Bipartite.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/785. Is Graph Bipartite.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/788. Rotated Digits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/788. Rotated Digits.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/79. Word Search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/79. Word Search.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/8. String to Integer (atoi).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/8. String to Integer (atoi).cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/804. Unique Morse Code Words.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/804. Unique Morse Code Words.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/824. Goat Latin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/824. Goat Latin.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/832. Flipping an Image.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/832. Flipping an Image.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/836. Rectangle Overlap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/836. Rectangle Overlap.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/841. Keys and Rooms.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/841. Keys and Rooms.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/859. Buddy Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/859. Buddy Strings.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/867. Transpose Matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/867. Transpose Matrix.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/877. Stone Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/877. Stone Game.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/881. Boats to Save People.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/881. Boats to Save People.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/887. Super Egg Drop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/887. Super Egg Drop.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/9. Palindrome Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/9. Palindrome Number.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/90. Subsets II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/90. Subsets II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/904. Fruit Into Baskets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/904. Fruit Into Baskets.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/905. Sort Array By Parity.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/905. Sort Array By Parity.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/908. Smallest Range I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/908. Smallest Range I.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/91. Decode Ways.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/91. Decode Ways.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/92. Reverse Linked List II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/92. Reverse Linked List II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/922. Sort Array By Parity II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/922. Sort Array By Parity II.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/929. Unique Email Addresses.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/929. Unique Email Addresses.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/933. Number of Recent Calls.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/933. Number of Recent Calls.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/941. Valid Mountain Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/941. Valid Mountain Array.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/954. Array of Doubled Pairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/954. Array of Doubled Pairs.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/970. Powerful Integers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/970. Powerful Integers.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/994. Rotting Oranges..cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/994. Rotting Oranges..cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/997. Find the Town Judge.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/997. Find the Town Judge.cpp -------------------------------------------------------------------------------- /competitive programming/leetcode/README.MD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/competitive programming/leetcode/README.MD -------------------------------------------------------------------------------- /dynamic programming/01_knapsack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/01_knapsack.cpp -------------------------------------------------------------------------------- /dynamic programming/01_knapsack_memoization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/01_knapsack_memoization.cpp -------------------------------------------------------------------------------- /dynamic programming/01_knapsack_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/01_knapsack_recursive.cpp -------------------------------------------------------------------------------- /dynamic programming/01_knapsack_tabulation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/01_knapsack_tabulation.cpp -------------------------------------------------------------------------------- /dynamic programming/2_egg_n_floor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/2_egg_n_floor.cpp -------------------------------------------------------------------------------- /dynamic programming/416. Partition Equal Subset Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/416. Partition Equal Subset Sum.cpp -------------------------------------------------------------------------------- /dynamic programming/boolean_patenthesization_memoization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/boolean_patenthesization_memoization.cpp -------------------------------------------------------------------------------- /dynamic programming/boolean_patenthesization_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/boolean_patenthesization_recursive.cpp -------------------------------------------------------------------------------- /dynamic programming/coin_change_min_num_of_ways.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/coin_change_min_num_of_ways.cpp -------------------------------------------------------------------------------- /dynamic programming/coin_change_num_of_ways.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/coin_change_num_of_ways.cpp -------------------------------------------------------------------------------- /dynamic programming/decode_ways.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/decode_ways.cpp -------------------------------------------------------------------------------- /dynamic programming/egg_drop_all.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/egg_drop_all.cpp -------------------------------------------------------------------------------- /dynamic programming/egg_dropping_memoization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/egg_dropping_memoization.cpp -------------------------------------------------------------------------------- /dynamic programming/egg_dropping_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/egg_dropping_recursive.cpp -------------------------------------------------------------------------------- /dynamic programming/longest_common_subsequence_memoization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/longest_common_subsequence_memoization.cpp -------------------------------------------------------------------------------- /dynamic programming/longest_common_subsequence_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/longest_common_subsequence_recursive.cpp -------------------------------------------------------------------------------- /dynamic programming/longest_common_subsequence_tabulation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/longest_common_subsequence_tabulation.cpp -------------------------------------------------------------------------------- /dynamic programming/longest_common_substring_tabulation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/longest_common_substring_tabulation.cpp -------------------------------------------------------------------------------- /dynamic programming/longest_palindromic_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/longest_palindromic_subsequence.cpp -------------------------------------------------------------------------------- /dynamic programming/longest_repeating_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/longest_repeating_subsequence.cpp -------------------------------------------------------------------------------- /dynamic programming/matrix_chain_multiplication_memoization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/matrix_chain_multiplication_memoization.cpp -------------------------------------------------------------------------------- /dynamic programming/matrix_chain_multiplication_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/matrix_chain_multiplication_recursive.cpp -------------------------------------------------------------------------------- /dynamic programming/max_sum_increasing_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/max_sum_increasing_subsequence.cpp -------------------------------------------------------------------------------- /dynamic programming/maximal_square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/maximal_square.cpp -------------------------------------------------------------------------------- /dynamic programming/min_cost_climbing_stairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/min_cost_climbing_stairs.cpp -------------------------------------------------------------------------------- /dynamic programming/min_days_to_eat_n_oranges.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/min_days_to_eat_n_oranges.cpp -------------------------------------------------------------------------------- /dynamic programming/min_num_of_deletion_to_make_palindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/min_num_of_deletion_to_make_palindrome.cpp -------------------------------------------------------------------------------- /dynamic programming/min_num_of_insertion_deletion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/min_num_of_insertion_deletion.cpp -------------------------------------------------------------------------------- /dynamic programming/min_num_of_insertion_to_make_palindrome.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/min_num_of_insertion_to_make_palindrome.cpp -------------------------------------------------------------------------------- /dynamic programming/min_path_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/min_path_sum.cpp -------------------------------------------------------------------------------- /dynamic programming/minimum_sum_partition.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/minimum_sum_partition.cpp -------------------------------------------------------------------------------- /dynamic programming/palindromic_partitioning_memoization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/palindromic_partitioning_memoization.cpp -------------------------------------------------------------------------------- /dynamic programming/palindromic_partitioning_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/palindromic_partitioning_recursive.cpp -------------------------------------------------------------------------------- /dynamic programming/print_longest_common_subsequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/print_longest_common_subsequence.cpp -------------------------------------------------------------------------------- /dynamic programming/print_shortest_common_supersequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/print_shortest_common_supersequence.cpp -------------------------------------------------------------------------------- /dynamic programming/rod_cutting.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/rod_cutting.cpp -------------------------------------------------------------------------------- /dynamic programming/sequence_pattern_matching.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/sequence_pattern_matching.cpp -------------------------------------------------------------------------------- /dynamic programming/shortest_common_supersequence.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/shortest_common_supersequence.cpp -------------------------------------------------------------------------------- /dynamic programming/subset_count_with_given_difference.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/subset_count_with_given_difference.cpp -------------------------------------------------------------------------------- /dynamic programming/subset_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/subset_sum.cpp -------------------------------------------------------------------------------- /dynamic programming/subset_sum_count.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/subset_sum_count.cpp -------------------------------------------------------------------------------- /dynamic programming/unbounded_01_knapsack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/unbounded_01_knapsack.cpp -------------------------------------------------------------------------------- /dynamic programming/unique_path_in_matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/unique_path_in_matrix.cpp -------------------------------------------------------------------------------- /dynamic programming/unique_paths.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/dynamic programming/unique_paths.cpp -------------------------------------------------------------------------------- /graph/adjList_graph_weighted.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/adjList_graph_weighted.cpp -------------------------------------------------------------------------------- /graph/adjacentList_graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/adjacentList_graph.cpp -------------------------------------------------------------------------------- /graph/adjacentList_graph_containg_letters_as_values.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/adjacentList_graph_containg_letters_as_values.cpp -------------------------------------------------------------------------------- /graph/bfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/bfs.cpp -------------------------------------------------------------------------------- /graph/bipartite_graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/bipartite_graph.cpp -------------------------------------------------------------------------------- /graph/celebrity_problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/celebrity_problem.cpp -------------------------------------------------------------------------------- /graph/clone_a_graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/clone_a_graph.cpp -------------------------------------------------------------------------------- /graph/cycle_detection_directed_graph_dfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/cycle_detection_directed_graph_dfs.cpp -------------------------------------------------------------------------------- /graph/cycle_detection_undirected_graph_bfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/cycle_detection_undirected_graph_bfs.cpp -------------------------------------------------------------------------------- /graph/cycle_detection_undirected_graph_dfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/cycle_detection_undirected_graph_dfs.cpp -------------------------------------------------------------------------------- /graph/dfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/dfs.cpp -------------------------------------------------------------------------------- /graph/dijkstras_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/dijkstras_algorithm.cpp -------------------------------------------------------------------------------- /graph/finding_bridges_in_a_graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/finding_bridges_in_a_graph.cpp -------------------------------------------------------------------------------- /graph/full_dfs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/full_dfs.cpp -------------------------------------------------------------------------------- /graph/invert_graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/invert_graph.cpp -------------------------------------------------------------------------------- /graph/kosarajus_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/kosarajus_algorithm.cpp -------------------------------------------------------------------------------- /graph/minimum_spanning_tree_prims.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/minimum_spanning_tree_prims.cpp -------------------------------------------------------------------------------- /graph/prims_mst_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/prims_mst_algorithm.cpp -------------------------------------------------------------------------------- /graph/rotten_oranges.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/rotten_oranges.cpp -------------------------------------------------------------------------------- /graph/transitive_closure_graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/graph/transitive_closure_graph.cpp -------------------------------------------------------------------------------- /linked list/LRU_Cache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/LRU_Cache.cpp -------------------------------------------------------------------------------- /linked list/add_two_numbers_2_in_form_of_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/add_two_numbers_2_in_form_of_linked_list.cpp -------------------------------------------------------------------------------- /linked list/add_two_numbers_in_form_of_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/add_two_numbers_in_form_of_linked_list.cpp -------------------------------------------------------------------------------- /linked list/copy_list_with_random_pointer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/copy_list_with_random_pointer.cpp -------------------------------------------------------------------------------- /linked list/create_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/create_linked_list.cpp -------------------------------------------------------------------------------- /linked list/delete_given_node_in_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/delete_given_node_in_linked_list.cpp -------------------------------------------------------------------------------- /linked list/detect_cycle_in_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/detect_cycle_in_linked_list.cpp -------------------------------------------------------------------------------- /linked list/find_node_where_cycle_begins_in_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/find_node_where_cycle_begins_in_linked_list.cpp -------------------------------------------------------------------------------- /linked list/flatten_multilevel_doubly_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/flatten_multilevel_doubly_linked_list.cpp -------------------------------------------------------------------------------- /linked list/intersection_of_two_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/intersection_of_two_linked_list.cpp -------------------------------------------------------------------------------- /linked list/maximum_twin_sum_in_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/maximum_twin_sum_in_linked_list.cpp -------------------------------------------------------------------------------- /linked list/merge_two_sorted_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/merge_two_sorted_list.cpp -------------------------------------------------------------------------------- /linked list/middle_of_the_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/middle_of_the_linked_list.cpp -------------------------------------------------------------------------------- /linked list/pairwise_swap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/pairwise_swap.cpp -------------------------------------------------------------------------------- /linked list/palindrome_check.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/palindrome_check.cpp -------------------------------------------------------------------------------- /linked list/remove_all_duplicates_sorted_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/remove_all_duplicates_sorted_linked_list.cpp -------------------------------------------------------------------------------- /linked list/remove_duplicates_sorted_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/remove_duplicates_sorted_linked_list.cpp -------------------------------------------------------------------------------- /linked list/remove_duplicates_unsorted_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/remove_duplicates_unsorted_linked_list.cpp -------------------------------------------------------------------------------- /linked list/remove_element_in_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/remove_element_in_linked_list.cpp -------------------------------------------------------------------------------- /linked list/remove_nth_node_from_end_of_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/remove_nth_node_from_end_of_linked_list.cpp -------------------------------------------------------------------------------- /linked list/reorder_odd_even_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/reorder_odd_even_linked_list.cpp -------------------------------------------------------------------------------- /linked list/reverse_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/reverse_linked_list.cpp -------------------------------------------------------------------------------- /linked list/reverse_linked_list_in_groups_of_k.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/reverse_linked_list_in_groups_of_k.cpp -------------------------------------------------------------------------------- /linked list/reverse_linked_list_in_range.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/reverse_linked_list_in_range.cpp -------------------------------------------------------------------------------- /linked list/rotate_linked_list_right_k_places.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/rotate_linked_list_right_k_places.cpp -------------------------------------------------------------------------------- /linked list/sort_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/sort_linked_list.cpp -------------------------------------------------------------------------------- /linked list/swap_actual_x_y_nodes_from_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/swap_actual_x_y_nodes_from_linked_list.cpp -------------------------------------------------------------------------------- /linked list/swap_kth_node_from_begin_end_in_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/linked list/swap_kth_node_from_begin_end_in_linked_list.cpp -------------------------------------------------------------------------------- /mathematical/catalan.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/catalan.cpp -------------------------------------------------------------------------------- /mathematical/check_if_prime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/check_if_prime.cpp -------------------------------------------------------------------------------- /mathematical/euler_totient_function.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/euler_totient_function.cpp -------------------------------------------------------------------------------- /mathematical/euler_totient_function_from_1_to_n.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/euler_totient_function_from_1_to_n.cpp -------------------------------------------------------------------------------- /mathematical/extended_eucledian_algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/extended_eucledian_algorithm.cpp -------------------------------------------------------------------------------- /mathematical/fermats_primality_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/fermats_primality_test.cpp -------------------------------------------------------------------------------- /mathematical/gcd_a_b.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/gcd_a_b.cpp -------------------------------------------------------------------------------- /mathematical/linear_diophantine_equation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/linear_diophantine_equation.cpp -------------------------------------------------------------------------------- /mathematical/matrix_exponentiation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/matrix_exponentiation.cpp -------------------------------------------------------------------------------- /mathematical/segmented_sieve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/segmented_sieve.cpp -------------------------------------------------------------------------------- /mathematical/seive_of_eratosthenes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/seive_of_eratosthenes.cpp -------------------------------------------------------------------------------- /mathematical/trailing_zeros_in_factorial.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/trailing_zeros_in_factorial.cpp -------------------------------------------------------------------------------- /mathematical/x_power_n_negative_decimal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/x_power_n_negative_decimal.cpp -------------------------------------------------------------------------------- /mathematical/x_power_y.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/mathematical/x_power_y.cpp -------------------------------------------------------------------------------- /matrix/diagonal_sum_matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/matrix/diagonal_sum_matrix.cpp -------------------------------------------------------------------------------- /matrix/rotate_matrix_90_anticlockwise.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/matrix/rotate_matrix_90_anticlockwise.cpp -------------------------------------------------------------------------------- /matrix/spiral_matrix.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/matrix/spiral_matrix.cpp -------------------------------------------------------------------------------- /matrix/spiral_matrix_2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/matrix/spiral_matrix_2.cpp -------------------------------------------------------------------------------- /recursion/Geek-onacci Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/recursion/Geek-onacci Number.cpp -------------------------------------------------------------------------------- /recursion/Geeks's Garden.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/recursion/Geeks's Garden.cpp -------------------------------------------------------------------------------- /recursion/Reach the target.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/recursion/Reach the target.cpp -------------------------------------------------------------------------------- /sdeProblemSheet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sdeProblemSheet.md -------------------------------------------------------------------------------- /sliding window/find_all_anagram_position.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/find_all_anagram_position.cpp -------------------------------------------------------------------------------- /sliding window/find_permutation_in_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/find_permutation_in_string.cpp -------------------------------------------------------------------------------- /sliding window/first_negative_in_every_window_of_size_k.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/first_negative_in_every_window_of_size_k.cpp -------------------------------------------------------------------------------- /sliding window/longest_repeating_character_replacement.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/longest_repeating_character_replacement.cpp -------------------------------------------------------------------------------- /sliding window/longest_substring_without_repeating_characters.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/longest_substring_without_repeating_characters.cpp -------------------------------------------------------------------------------- /sliding window/max_continous_ones_with_k_0_flips.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/max_continous_ones_with_k_0_flips.cpp -------------------------------------------------------------------------------- /sliding window/max_element_in_every_window_of_size_k.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/max_element_in_every_window_of_size_k.cpp -------------------------------------------------------------------------------- /sliding window/max_length_subarray_having_2_distinct_element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/max_length_subarray_having_2_distinct_element.cpp -------------------------------------------------------------------------------- /sliding window/max_sum_subarray_of_size_k.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/max_sum_subarray_of_size_k.cpp -------------------------------------------------------------------------------- /sliding window/maximum_num_of_vowel_in_a_window.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/maximum_num_of_vowel_in_a_window.cpp -------------------------------------------------------------------------------- /sliding window/min_length_subarray_with_target_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/min_length_subarray_with_target_sum.cpp -------------------------------------------------------------------------------- /sliding window/smallest_window_containing_substring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/sliding window/smallest_window_containing_substring.cpp -------------------------------------------------------------------------------- /stack/max_rectangular_area_histogram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/stack/max_rectangular_area_histogram.cpp -------------------------------------------------------------------------------- /stack/min_stack_O(1).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/stack/min_stack_O(1).cpp -------------------------------------------------------------------------------- /stack/min_stack_extra_space.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/stack/min_stack_extra_space.cpp -------------------------------------------------------------------------------- /stack/next_larger_element_in_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/stack/next_larger_element_in_array.cpp -------------------------------------------------------------------------------- /stack/stock_span_problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/stack/stock_span_problem.cpp -------------------------------------------------------------------------------- /string/add_binary_numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/add_binary_numbers.cpp -------------------------------------------------------------------------------- /string/decode_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/decode_string.cpp -------------------------------------------------------------------------------- /string/excel_sheet_column_number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/excel_sheet_column_number.cpp -------------------------------------------------------------------------------- /string/extra_char_in_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/extra_char_in_string.cpp -------------------------------------------------------------------------------- /string/integer_or_string_check.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/integer_or_string_check.cpp -------------------------------------------------------------------------------- /string/isZero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/isZero.cpp -------------------------------------------------------------------------------- /string/kmp_string_matching.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/kmp_string_matching.cpp -------------------------------------------------------------------------------- /string/miising_char_to_make_pangram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/miising_char_to_make_pangram.cpp -------------------------------------------------------------------------------- /string/num_of_palindromic_substrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/num_of_palindromic_substrings.cpp -------------------------------------------------------------------------------- /string/palindromic_anagram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/palindromic_anagram.cpp -------------------------------------------------------------------------------- /string/pangram_check.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/pangram_check.cpp -------------------------------------------------------------------------------- /string/pangrammatic_lipogram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/pangrammatic_lipogram.cpp -------------------------------------------------------------------------------- /string/rabin_karp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/rabin_karp.cpp -------------------------------------------------------------------------------- /string/round_to_nearest_ten.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/round_to_nearest_ten.cpp -------------------------------------------------------------------------------- /string/seperate_adjacent_characters_in_string.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/seperate_adjacent_characters_in_string.cpp -------------------------------------------------------------------------------- /string/z_algorithm_string_matching.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/string/z_algorithm_string_matching.cpp -------------------------------------------------------------------------------- /tree/binary_search_tree_iterator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/binary_search_tree_iterator.cpp -------------------------------------------------------------------------------- /tree/binary_tree_to_doubly_linked_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/binary_tree_to_doubly_linked_list.cpp -------------------------------------------------------------------------------- /tree/bottom_order_view.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/bottom_order_view.cpp -------------------------------------------------------------------------------- /tree/check_isvalid_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/check_isvalid_bst.cpp -------------------------------------------------------------------------------- /tree/complete_binary_tree_using_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/complete_binary_tree_using_array.cpp -------------------------------------------------------------------------------- /tree/complete_binary_tree_using_given_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/complete_binary_tree_using_given_array.cpp -------------------------------------------------------------------------------- /tree/count_bst_nodes_in_a_range.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/count_bst_nodes_in_a_range.cpp -------------------------------------------------------------------------------- /tree/count_nodes_in_a_complete_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/count_nodes_in_a_complete_binary_tree.cpp -------------------------------------------------------------------------------- /tree/create_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/create_bst.cpp -------------------------------------------------------------------------------- /tree/create_bst_duplicates.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/create_bst_duplicates.cpp -------------------------------------------------------------------------------- /tree/delete_even_rows.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/delete_even_rows.cpp -------------------------------------------------------------------------------- /tree/deletion_in_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/deletion_in_binary_tree.cpp -------------------------------------------------------------------------------- /tree/diameter_of_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/diameter_of_binary_tree.cpp -------------------------------------------------------------------------------- /tree/floor_and_ceil_of_a_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/floor_and_ceil_of_a_bst.cpp -------------------------------------------------------------------------------- /tree/inorder_traversal_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/inorder_traversal_recursive.cpp -------------------------------------------------------------------------------- /tree/inorder_traversal_without_recursion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/inorder_traversal_without_recursion.cpp -------------------------------------------------------------------------------- /tree/insertion_binary_tree_levelorder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/insertion_binary_tree_levelorder.cpp -------------------------------------------------------------------------------- /tree/invert_a_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/invert_a_binary_tree.cpp -------------------------------------------------------------------------------- /tree/kth_largest_element_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/kth_largest_element_bst.cpp -------------------------------------------------------------------------------- /tree/kth_smallest_element_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/kth_smallest_element_bst.cpp -------------------------------------------------------------------------------- /tree/largest_bst_in_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/largest_bst_in_binary_tree.cpp -------------------------------------------------------------------------------- /tree/largest_root_to_leaf_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/largest_root_to_leaf_sum.cpp -------------------------------------------------------------------------------- /tree/left_view_simple_recusion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/left_view_simple_recusion.cpp -------------------------------------------------------------------------------- /tree/left_view_using_level_order.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/left_view_using_level_order.cpp -------------------------------------------------------------------------------- /tree/levelorder_traversal_using_queue.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/levelorder_traversal_using_queue.cpp -------------------------------------------------------------------------------- /tree/max_path_sum_any_node_to_node_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/max_path_sum_any_node_to_node_binary_tree.cpp -------------------------------------------------------------------------------- /tree/merge_binary_trees.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/merge_binary_trees.cpp -------------------------------------------------------------------------------- /tree/palindromic_binary_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/palindromic_binary_tree.cpp -------------------------------------------------------------------------------- /tree/postorder_traversal_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/postorder_traversal_recursive.cpp -------------------------------------------------------------------------------- /tree/postorder_traversal_without_recusrion_one_stack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/postorder_traversal_without_recusrion_one_stack.cpp -------------------------------------------------------------------------------- /tree/postorder_traversal_without_recusrion_two_stack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/postorder_traversal_without_recusrion_two_stack.cpp -------------------------------------------------------------------------------- /tree/predecessor_successor_in_bst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/predecessor_successor_in_bst.cpp -------------------------------------------------------------------------------- /tree/preorder_traversal_recursive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/preorder_traversal_recursive.cpp -------------------------------------------------------------------------------- /tree/preorder_traversal_without_recursion.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/preorder_traversal_without_recursion.cpp -------------------------------------------------------------------------------- /tree/range_sum_query_segment_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/range_sum_query_segment_tree.cpp -------------------------------------------------------------------------------- /tree/simple_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/simple_tree.cpp -------------------------------------------------------------------------------- /tree/sum_of_Digit_Paths_in_a_Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/sum_of_Digit_Paths_in_a_Tree.cpp -------------------------------------------------------------------------------- /tree/sum_of_right_leaves.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/sum_of_right_leaves.cpp -------------------------------------------------------------------------------- /tree/top_order_view.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/top_order_view.cpp -------------------------------------------------------------------------------- /tree/trie_insert_and_search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/trie_insert_and_search.cpp -------------------------------------------------------------------------------- /tree/update_node_with_left_righ_subtree_sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/update_node_with_left_righ_subtree_sum.cpp -------------------------------------------------------------------------------- /tree/vertical_order_traversal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/tree/vertical_order_traversal.cpp -------------------------------------------------------------------------------- /two pointers/num_of_subsequences_that_staisfiy_sum_condition.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sureshmangs/Code/HEAD/two pointers/num_of_subsequences_that_staisfiy_sum_condition.cpp --------------------------------------------------------------------------------