Advertisement
PavloSerg

Untitled

Feb 18th, 2023
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. public class AVLTree<TKey, TValue>
  2. where TKey : IComparable<TKey>
  3. {
  4. Node<TKey, TValue> _root;
  5. public int Count { get; private set; }
  6.  
  7. public void Add(TKey key, TValue value)
  8. {
  9. throw new NotImplementedException();
  10. }
  11.  
  12. public bool Remove(TKey key)
  13. {
  14. throw new NotImplementedException();
  15. }
  16.  
  17. protected TValue GetValue(TKey key)
  18. {
  19. throw new NotImplementedException();
  20. }
  21.  
  22. protected TValue SetValueByKey(TKey key, TValue newValue)
  23. {
  24. throw new NotImplementedException();
  25. }
  26.  
  27. protected void TreeBalance()
  28. {
  29. throw new NotImplementedException();
  30. }
  31.  
  32. public TValue this[TKey index]
  33. {
  34. get => GetValue(index);
  35. set => SetValueByKey(index, value);
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement