summaryrefslogtreecommitdiff
path: root/rush/max_search_3.c
diff options
context:
space:
mode:
Diffstat (limited to 'rush/max_search_3.c')
-rw-r--r--rush/max_search_3.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/rush/max_search_3.c b/rush/max_search_3.c
new file mode 100644
index 0000000..47ec2b9
--- /dev/null
+++ b/rush/max_search_3.c
@@ -0,0 +1,21 @@
+#include <unistd.h>
+void max_search_3(int x[4], int left, int right)
+{
+ if (left - right == 0)
+ {
+ x[0] = 3;
+ x[3] = 3;
+ }
+ if (left == 2 && right == 3)
+ {
+ x[0] = 3;
+ x[2] = 3;
+ }
+ if (left == 3 && right == 2)
+ {
+ x[3] = 3;
+ x[1] = 3;
+ }
+ if
+
+} \ No newline at end of file