<commit_before>//  https://leetcode.com/submissions/detail/52724586/
//
//  
//  Submission Details
//  164 / 164 test cases passed.
//      Status: Accepted
//      Runtime: 160 ms
//          
//          Submitted: 0 minutes ago
//

/**
 * Definition for singly-linked list.
 * public class ListNode {
 *     public int val;
 *     public ListNode next;
 *     public ListNode(int x) { val = x; }
 * }
 */
public class Solution {
    public ListNode DeleteDuplicates(ListNode head) {
        if (head == null || head.next == null)
        {
            return head;
        }
        
        head.next = DeleteDuplicates(head.next);
        return head.val == head.next.val ? head.next : head;
    }
}<commit_msg>Remove duplicates from sorted list - slower lol<commit_after>//  https://leetcode.com/submissions/detail/52724586/
//
//  
//  Submission Details
//  164 / 164 test cases passed.
//      Status: Accepted
//      Runtime: 160 ms
//          
//          Submitted: 0 minutes ago
//

/**
 * Definition for singly-linked list.
 * public class ListNode {
 *     public int val;
 *     public ListNode next;
 *     public ListNode(int x) { val = x; }
 * }
 */
public class Solution {
    public ListNode DeleteDuplicates(ListNode head) {
        if (head == null || head.next == null)
        {
            return head;
        }
        
        head.next = DeleteDuplicates(head.next);
        return head.val == head.next.val ? head.next : head;
    }
}

//  
//  Submission Details
//  164 / 164 test cases passed.
//      Status: Accepted
//      Runtime: 164 ms
//          
//          Submitted: 0 minutes ago
//
/**
 * Definition for singly-linked list.
 * public class ListNode {
 *     public int val;
 *     public ListNode next;
 *     public ListNode(int x) { val = x; }
 * }
 */
public class Solution {
    public ListNode DeleteDuplicates(ListNode head) {
        var dummy = new ListNode(int.MaxValue);
        var it = dummy;
        while (head != null)
        {
            var next = head.next;
            if (it.val != head.val)
            {
                it.next = head;
                it = it.next;
                it.next = null;
            }
            
            head = next;
        }
        
        return dummy.next;
    }
}
{'fraction_non_alphanumeric': 0.11940298507462686, 'fraction_numerical': 0.02019315188762072, 'mean_word_length': 1.5492170022371365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2136973', 'n_tokens_mistral': 719, 'n_tokens_neox': 670, 'n_words': 187}