summaryrefslogtreecommitdiff
path: root/rush/max_search_3.c
diff options
context:
space:
mode:
authorMatsuko Sano <msano@c1r17s9.42tokyo.jp>2022-08-22 17:30:07 +0900
committerMatsuko Sano <msano@c1r17s9.42tokyo.jp>2022-08-22 17:30:07 +0900
commitbe31e6b7731a2f3142fbf29472ae1d71f82765fb (patch)
tree53e48351cdefed0a60072e7a805e8736add02786 /rush/max_search_3.c
parent43cbb3f685d5895bb1877f683060d7d2958d5966 (diff)
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