TheAlgorithms-C/leetcode/src
hemanth8819 db69d0a539
feat: add LeetCode problem 69 (#1259)
* feat: add LeetCode problem 69

Here is the code for the problem 69 of leetcode as there are many ways to do it we programmers need to find the most optimal way to solve a problem statement so i used binary-search approach inorder to solve it.
All  suggestions are accepted!!!

* Update 69.c

I have updated the solution according to the suggestions.

* Update 69.c

* Update 69.c
2023-06-27 13:49:43 -06:00
..
1.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
2.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
3.c fix: typo in comments of leetcode-3 (#931) 2022-01-11 11:28:27 -06:00
4.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
5.c feat: add Longest Palindrome Substring solution (#1210) 2023-02-25 20:35:50 +00:00
6.c feat: leetcode zigzag solution (#897) 2021-12-09 11:51:02 -06:00
7.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
8.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
9.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
10.c feat: add LeetCode problem 10 (#1033) 2022-11-09 19:24:15 -06:00
11.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
12.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
13.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
14.c chore: add Max Consecutive Ones in LeetCode folder (#982) 2022-11-14 12:47:23 -06:00
16.c feat: add solution for the 3Sum Closest problem (#16) (#1216) 2023-02-21 18:55:09 +08:00
17.c feat: add Letter combinations of phone book problem (#1221) 2023-02-28 01:17:31 -06:00
19.c feat: remove nth node from end of list LeetCode (#1222) 2023-03-03 09:12:04 -06:00
20.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
21.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
24.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
26.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
27.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
28.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
29.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
32.c feat: add Longest Valid Parentheses LeetCode problem (#1166) 2022-12-16 15:37:54 -06:00
35.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
37.c feat: add Sudoku Solver LeetCode (#1162) 2022-12-21 08:44:43 -06:00
38.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
42.c feat: add trapping rain water (#1132) 2022-11-24 23:14:01 -06:00
45.c feat: add LeetCode jump game II (#1213) 2023-02-28 00:55:09 -06:00
50.c feat: add LeetCode Pow(x, n) (#1194) 2023-01-23 23:06:49 -06:00
53.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
62.c Add Leet Code Solution of 62 No Ques (#1061) 2022-10-22 15:35:58 +05:30
63.c feat: add LeetCode problem 62 (#1062) 2022-10-28 20:30:13 -05:00
66.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
69.c feat: add LeetCode problem 69 (#1259) 2023-06-27 13:49:43 -06:00
75.c feat: add LeetCode problem 75 (#1113) 2023-01-20 17:50:49 -06:00
79.c feat: add Word Search LeetCode problem (#1160) 2022-12-16 20:28:51 -06:00
82.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
83.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
94.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
98.c feat: add Validate Binary Search Tree (#1153) 2022-11-25 18:54:41 -06:00
101.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
104.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
108.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
109.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
110.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
112.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
118.c feat: add LeetCode problem 118 (#996) 2022-10-05 12:31:51 -05:00
119.c feat: add Leetcode problem 119 (#997) 2022-10-28 18:47:45 -05:00
121.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
124.c feat: add Binary Tree Maximum Path Sum (#1179) 2023-01-21 18:42:07 -06:00
125.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
136.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
141.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
142.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
153.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
160.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
169.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
173.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
189.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
190.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
191.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
201.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
203.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
206.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
215.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
217.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
223.c feat: add Rectangle Area LeetCode problem (#1147) 2022-11-21 15:09:27 -06:00
226.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
230.c feat: add Kth Smallest Element in a BST (#1157) 2022-12-16 20:24:33 -06:00
231.c feat: improve the Power of Two LeetCode problem (#1148) 2022-11-18 14:09:44 -06:00
234.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
236.c feat: add Lowest Common Ancestor of a Binary Tree (#1155) 2022-12-21 08:46:34 -06:00
242.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
268.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
274.c feat: add H-Index LeetCode problem (#1188) 2022-12-21 22:42:07 -06:00
278.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
283.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
287.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
344.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
367.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
387.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
389.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
404.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
434.c feat: add LeetCode problem 434 (#1252) 2023-04-27 13:37:59 -06:00
442.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
461.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
476.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
485.c chore: add LeetCode problem 485 (#981) 2022-11-08 15:08:46 -06:00
509.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
520.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
540.c feat: add LeetCode problem 540 (#1217) 2023-02-23 11:32:04 -06:00
561.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
567.c add leetcode Permutation in String (#1207) 2023-02-06 04:52:24 -06:00
617.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
647.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
669.c feat: add Trim a Binary Search Tree LeetCode problem (#1156) 2022-12-01 23:11:58 -06:00
674.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
684.c feat: add Redundant Connection (#1181) 2023-01-18 13:15:47 -06:00
700.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
701.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
704.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
709.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
771.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
807.c feat: add Max Increase to Keep City Skyline (#1173) 2022-12-27 01:21:10 -06:00
841.c feat: add Keys and Rooms LeetCode problem (#1189) 2023-01-19 22:09:32 -06:00
852.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
876.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
901.c feat: add Online Stock Span (#1142) 2022-11-25 12:57:19 -06:00
905.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
917.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
931.c feat: add Minimum Falling Path Sum (#1182) 2023-01-18 13:54:30 -06:00
938.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
953.c add leetcode Verifying an Alien Dictionary (#1205) 2023-02-04 12:51:01 +00:00
965.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
977.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
979.c feat: add Distribute Coins in Binary Tree LeetCode (#1206) 2023-02-03 18:11:43 -06:00
985.c feat: add Sum of Even Numbers LeetCode problem (#1145) 2022-11-25 12:35:54 -06:00
997.c feat: add Find the Town Judge LeetCode problem (#1199) 2023-01-31 13:26:17 -06:00
1008.c feat: leetcode Construct Binary Search Tree from Preorder Traversal solution (1008) (#1021) 2022-11-04 19:15:30 -06:00
1009.c feat: add compliment of 10 integer (#1136) 2022-11-15 18:27:22 -06:00
1019.c feat: LeetCode Next Greater Node In Linked List solution (1019) (#1022) 2022-11-02 00:14:45 -06:00
1026.c feat: add Maximum Difference Between Node and Ancestor (#1180) 2023-01-18 13:15:20 -06:00
1089.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
1137.c feat: add N-th Tribonacci number (#1202) 2023-02-02 19:58:32 -06:00
1147.c feat: add Longest Chunked Palindrome Decomposition (#1184) 2023-01-18 14:34:19 -06:00
1184.c formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
1189.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
1207.c formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
1283.c feat: add Find the Smallest Divisor Given a Threshold (#1175) 2023-01-20 17:39:35 -06:00
1524.c feat: add Number of Sub-arrays With Odd Sum (#1139) 2022-11-18 14:09:11 -06:00
1653.c feat: add Minimum Deletions LeetCode problem (#1138) 2022-11-25 17:38:33 -06:00
1657.c feat: add Determine if Two Strings Are Close (#1192) 2023-01-20 17:46:02 -06:00
1695.c feat: add Maximum Erasure Value LeetCode problem (#1137) 2022-12-01 23:18:59 -06:00
1704.c feat: add Determine if String Halves Are Alike LeetCode (#1168) 2022-12-16 15:43:25 -06:00
1752.c feat: add Check if Array Is Sorted and Rotated (#1141) 2022-11-18 14:02:59 -06:00
1769.c feat: add Minimum Number of Operations to... (#1146) 2022-12-01 23:03:24 -06:00
1833.c feat: add Maximum Ice Cream Bars (#1197) 2023-01-20 17:49:15 -06:00
1838.c feat: add Frequency of the Most Frequent Element (#1195) 2023-01-20 15:42:23 -06:00
2024.c feat: add Maximize the Confusion LeetCode problem (#1150) 2022-12-01 22:55:36 -06:00
2095.c feat: add delete the Middle Node of a Linked List solution (#1023) 2023-01-19 22:29:34 -06:00
2125.c feat: add Number of Laser Beams in a Bank (#1174) 2023-01-18 13:13:06 -06:00
2130.c feat: leetcode Maximum Twin Sum of a Linked List solution (2130) (#988) 2022-10-09 12:32:15 +05:30
2222.c feat: add Number of Ways to Select Buildings (#1140) 2022-12-18 21:34:24 -06:00
2256.c feat: add Minimum Average Difference (#1171) 2022-12-27 11:45:39 -06:00
2270.c feat: add Number of Ways to Split Array LeetCode (#1165) 2022-12-16 15:42:57 -06:00
2279.c add leetcode Maximum Bags With Full Capacity of Rocks (#1196) 2023-01-20 17:48:26 -06:00
2304.c feat: add Minimum Path Cost LeetCode problem (#1144) 2022-11-24 23:14:53 -06:00
2482.c feat: add Difference Between Ones and Zeros in Row and Column (#1183) 2023-01-19 22:43:10 -06:00
2501.c feat: add Longest Square Streak in an Array (#1185) 2023-01-18 14:06:45 -06:00