Skip to content

Commit

Permalink
Merge pull request #8 from alex28sh/096-changes
Browse files Browse the repository at this point in the history
change 096
  • Loading branch information
alex28sh authored Aug 22, 2024
2 parents 45d4551 + 028a450 commit e482790
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 53 deletions.
32 changes: 0 additions & 32 deletions Bench/096-count_up_to.py

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ Current status:
- [ ] 38. encode_cyclic
- [ ] 39. prime_fib
- [x] 40. triples_sum_to_zero
- [ ] 41. car_race_collision
- [x] 41. car_race_collision
- [x] 42. incr_list
- [x] 43. pairs_sum_to_zero
- [ ] 44. change_base
- [ ] 45. triangle_area
- [ ] 46. fib4
- [x] 46. fib4
- [ ] 47. median
- [x] 48. is_palindrome
- [ ] 49. modp
Expand Down Expand Up @@ -99,15 +99,15 @@ Current status:
- [ ] 93. encode
- [ ] 94. skjkasdkd
- [ ] 95. check_dict_case
- [x] 96. count_up_to
- [ ] 96. count_up_to
- [x] 97. multiply
- [ ] 98. count_upper
- [ ] 99. closest_integer
- [x] 100. make_a_pile
- [ ] 101. words_string
- [x] 102. choose_num
- [ ] 103. rounded_avg
- [x] 104. unique_digits
- [ ] 104. unique_digits
- [ ] 105. by_length
- [x] 106. f
- [ ] 107. even_odd_palindrome
Expand All @@ -129,7 +129,7 @@ Current status:
- [ ] 123. get_odd_collatz
- [ ] 124. valid_date
- [ ] 125. split_words
- [ ] 126. is_sorted
- [x] 126. is_sorted
- [x] 127. intersection
- [ ] 128. prod_signs
- [ ] 129. minPath
Expand All @@ -138,18 +138,18 @@ Current status:
- [ ] 132. is_nested
- [x] 133. sum_squares
- [ ] 134. check_if_last_char_is_a_letter
- [ ] 135. can_arrange
- [x] 135. can_arrange
- [ ] 136. largest_smallest_integers
- [ ] 137. compare_one
- [ ] 138. is_equal_to_sum_even
- [x] 138. is_equal_to_sum_even
- [x] 139. special_factorial
- [ ] 140. fix_spaces
- [ ] 141. file_name_check
- [x] 142. sum_squares
- [ ] 143. words_in_sentence
- [ ] 144. simplify
- [ ] 145. order_by_points
- [ ] 146. specialFilter
- [x] 146. specialFilter
- [ ] 147. get_max_triples
- [ ] 148. bf
- [ ] 149. sorted_list_sum
Expand Down
26 changes: 13 additions & 13 deletions WIP/WIP: 034-unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ def uniqueSorted(s : List[int]) -> List[int]:
# not (((0) <= (d_11_j_)) and ((d_11_j_) < (d_6_i_))) or (((s)[d_11_j_]) in (result))))
if ((len(result)) == (0)) or (((result)[(len(result)) - (1)]) != ((s)[d_6_i_])):
# Assert(((len(result)) == (0)) or (((result)[(len(result)) - (1)]) < ((s)[d_6_i_])))
old_res = list(result)
Assert(Forall(int, lambda d_9_k_:
(Implies(((0) <= (d_9_k_)) and ((d_9_k_) < (len(result))), Exists(int, lambda d_10_m_:
(((0) <= (d_10_m_)) and ((d_10_m_) < (d_6_i_))) and (((result)[d_9_k_]) == ((s)[d_10_m_])))), [[(result)[d_9_k_]]])))
Assert(Forall(int, lambda d_9_k_: Implies(0 <= d_9_k_ and d_9_k_ < len(result), result[d_9_k_] == old_res[d_9_k_])))
Assert(Forall(int, lambda d_9_k_:
(Implies(((0) <= (d_9_k_)) and ((d_9_k_) < (len(old_res))), Exists(int, lambda d_10_m_:
(((0) <= (d_10_m_)) and ((d_10_m_) < (d_6_i_))) and (((old_res)[d_9_k_]) == ((s)[d_10_m_])))), [[(old_res)[d_9_k_]]])))
# old_res = list(result)
# Assert(Forall(int, lambda d_9_k_:
# (Implies(((0) <= (d_9_k_)) and ((d_9_k_) < (len(result))), Exists(int, lambda d_10_m_:
# (((0) <= (d_10_m_)) and ((d_10_m_) < (d_6_i_))) and (((result)[d_9_k_]) == ((s)[d_10_m_])))), [[(result)[d_9_k_]]])))
# Assert(Forall(int, lambda d_9_k_: Implies(0 <= d_9_k_ and d_9_k_ < len(result), result[d_9_k_] == old_res[d_9_k_])))
# Assert(Forall(int, lambda d_9_k_:
# (Implies(((0) <= (d_9_k_)) and ((d_9_k_) < (len(old_res))), Exists(int, lambda d_10_m_:
# (((0) <= (d_10_m_)) and ((d_10_m_) < (d_6_i_))) and (((old_res)[d_9_k_]) == ((s)[d_10_m_])))), [[(old_res)[d_9_k_]]])))
result = (result) + [(s)[d_6_i_]]
Assert(Exists(int, lambda d_10_m_:
(((0) <= (d_10_m_)) and ((d_10_m_) <= (d_6_i_))) and (((result)[len(result) - 1]) == ((s)[d_10_m_]))))
Assert(Forall(int, lambda d_9_k_:
(Implies(((0) <= (d_9_k_)) and ((d_9_k_) < (len(old_res))), Exists(int, lambda d_10_m_:
(((0) <= (d_10_m_)) and ((d_10_m_) < (d_6_i_))) and (((old_res)[d_9_k_]) == ((s)[d_10_m_])))), [[(old_res)[d_9_k_]]])))
# Assert(Exists(int, lambda d_10_m_:
# (((0) <= (d_10_m_)) and ((d_10_m_) <= (d_6_i_))) and (((result)[len(result) - 1]) == ((s)[d_10_m_]))))
# Assert(Forall(int, lambda d_9_k_:
# (Implies(((0) <= (d_9_k_)) and ((d_9_k_) < (len(old_res))), Exists(int, lambda d_10_m_:
# (((0) <= (d_10_m_)) and ((d_10_m_) < (d_6_i_))) and (((old_res)[d_9_k_]) == ((s)[d_10_m_])))), [[(old_res)[d_9_k_]]])))
# Assert(Forall(int, lambda d_9_k_:
# (Implies(((0) <= (d_9_k_)) and ((d_9_k_) < (len(old_res))), Exists(int, lambda d_10_m_:
# (((0) <= (d_10_m_)) and ((d_10_m_) <= (d_6_i_))) and (((old_res)[d_9_k_]) == ((s)[d_10_m_])))), [[(old_res)[d_9_k_]]])))
Expand Down

0 comments on commit e482790

Please sign in to comment.